A platform for community discussion. Free, open, simple.
If login is required skip CDN
Samc9f42506b7bb
diff --git a/app/controllers/extra_locales_controller.rb b/app/controllers/extra_locales_controller.rbindex cbecf402885..6ee44ffa2fa 100644--- a/app/controllers/extra_locales_controller.rb+++ b/app/controllers/extra_locales_controller.rb@@ -24,7 +24,7 @@ class ExtraLocalesController < ApplicationControllerdef self.url(bundle)if Rails.env == "production"- "#{GlobalSetting.cdn_url}#{Discourse.base_uri}/extra-locales/#{bundle}?v=#{bundle_js_hash(bundle)}"+ "#{SiteSetting.login_required ? "" : GlobalSetting.cdn_url}#{Discourse.base_uri}/extra-locales/#{bundle}?v=#{bundle_js_hash(bundle)}"else"#{Discourse.base_uri}/extra-locales/#{bundle}"end