mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 03:32:17 +08:00
bypass mini profiler for locales
bypass cdn for now
This commit is contained in:
@ -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)}"
|
||||
"#{Discourse.base_uri}/extra-locales/#{bundle}?v=#{bundle_js_hash(bundle)}"
|
||||
else
|
||||
"#{Discourse.base_uri}/extra-locales/#{bundle}"
|
||||
end
|
||||
|
Reference in New Issue
Block a user