parent
b0a7ee1aec
commit
ea63abf0f7
|
@ -24,7 +24,7 @@ class ExtraLocalesController < ApplicationController
|
||||||
|
|
||||||
def self.url(bundle)
|
def self.url(bundle)
|
||||||
if Rails.env == "production"
|
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
|
else
|
||||||
"#{Discourse.base_uri}/extra-locales/#{bundle}"
|
"#{Discourse.base_uri}/extra-locales/#{bundle}"
|
||||||
end
|
end
|
||||||
|
|
|
@ -25,6 +25,7 @@ if defined?(Rack::MiniProfiler)
|
||||||
|
|
||||||
skip = [
|
skip = [
|
||||||
/^\/message-bus/,
|
/^\/message-bus/,
|
||||||
|
/^\/extra-locales/,
|
||||||
/topics\/timings/,
|
/topics\/timings/,
|
||||||
/assets/,
|
/assets/,
|
||||||
/\/user_avatar\//,
|
/\/user_avatar\//,
|
||||||
|
|
Loading…
Reference in New Issue