FIX: site cusomizations didn't respect subdirectories

This commit is contained in:
Robin Ward 2015-03-09 16:38:25 -04:00
parent 49978d02c2
commit 6ea20018c5

View File

@ -139,7 +139,7 @@ class SiteCustomization < ActiveRecord::Base
end
def self.link_css_tag(href)
href = (GlobalSetting.cdn_url || "") + "#{href}&__ws=#{Discourse.current_hostname}"
href = (GlobalSetting.cdn_url || "") + "#{GlobalSetting.relative_url_root}#{href}&__ws=#{Discourse.current_hostname}"
%Q{<link class="custom-css" rel="stylesheet" href="#{href}" type="text/css" media="all">}.html_safe
end
end