mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 19:53:53 -06:00
FIX: theme-javascripts using incorrect subfolder setting
This commit is contained in:
parent
e2ce12d414
commit
ccc9b64a99
@ -8,7 +8,7 @@ class JavascriptCache < ActiveRecord::Base
|
||||
before_save :update_digest
|
||||
|
||||
def url
|
||||
"#{GlobalSetting.cdn_url}#{GlobalSetting.relative_url_root}/theme-javascripts/#{digest}.js?__ws=#{Discourse.current_hostname}"
|
||||
"#{GlobalSetting.cdn_url}#{Discourse.base_uri}/theme-javascripts/#{digest}.js?__ws=#{Discourse.current_hostname}"
|
||||
end
|
||||
|
||||
private
|
||||
|
@ -36,7 +36,7 @@ class ContentSecurityPolicy
|
||||
if can_use_s3_cdn && s3_cdn
|
||||
s3_cdn + dir
|
||||
elsif can_use_cdn && cdn
|
||||
cdn + dir
|
||||
cdn + Discourse.base_uri + dir
|
||||
else
|
||||
base + dir
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user