From 6b8320fea6c3b495f6e9299802c6f89e7df7eb12 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 9 Jan 2018 17:00:30 +1100 Subject: [PATCH] PERF: use cdn for extra locales --- app/controllers/extra_locales_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/extra_locales_controller.rb b/app/controllers/extra_locales_controller.rb index d0e4884fcc4..cbecf402885 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" - "#{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 "#{Discourse.base_uri}/extra-locales/#{bundle}" end