diff --git a/app/controllers/extra_locales_controller.rb b/app/controllers/extra_locales_controller.rb index cbecf402885..6ee44ffa2fa 100644 --- a/app/controllers/extra_locales_controller.rb +++ b/app/controllers/extra_locales_controller.rb @@ -24,7 +24,7 @@ class ExtraLocalesController < ApplicationController def 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