diff --git a/app/views/common/_special_font_face.html.erb b/app/views/common/_special_font_face.html.erb index 6436768afd5..50fc5d96a87 100644 --- a/app/views/common/_special_font_face.html.erb +++ b/app/views/common/_special_font_face.html.erb @@ -8,7 +8,7 @@ &1 was added last when the nginx sample config changed %> -<% font_domain = "#{request.protocol}#{request.host_with_port}&2" %> +<% font_domain = "#{Discourse.base_url_no_prefix}&2".html_safe %> <% woff2_url = "#{asset_path("fontawesome-webfont.woff2")}?#{font_domain}&v=4.7.0".html_safe %> diff --git a/app/views/exceptions/not_found.html.erb b/app/views/exceptions/not_found.html.erb index 899c231514d..e06acfd0900 100644 --- a/app/views/exceptions/not_found.html.erb +++ b/app/views/exceptions/not_found.html.erb @@ -26,15 +26,13 @@ <% end %> <%- unless @hide_google %> - <% local_domain = "#{request.protocol}#{request.host_with_port}" %> -