PERF: use cdn for extra locales
This commit is contained in:
parent
16ce305e53
commit
6b8320fea6
|
@ -24,7 +24,7 @@ class ExtraLocalesController < ApplicationController
|
||||||
|
|
||||||
def self.url(bundle)
|
def self.url(bundle)
|
||||||
if Rails.env == "production"
|
if Rails.env == "production"
|
||||||
"#{Discourse.base_uri}/extra-locales/#{bundle}?v=#{bundle_js_hash(bundle)}"
|
"#{GlobalSetting.cdn_url}#{Discourse.base_uri}/extra-locales/#{bundle}?v=#{bundle_js_hash(bundle)}"
|
||||||
else
|
else
|
||||||
"#{Discourse.base_uri}/extra-locales/#{bundle}"
|
"#{Discourse.base_uri}/extra-locales/#{bundle}"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue