From ea63abf0f7ac476fc3ea133096d2a91ceadfca48 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 9 Jan 2018 11:30:59 +1100 Subject: [PATCH] bypass mini profiler for locales bypass cdn for now --- app/controllers/extra_locales_controller.rb | 2 +- config/initializers/006-mini_profiler.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/extra_locales_controller.rb b/app/controllers/extra_locales_controller.rb index cbecf402885..d0e4884fcc4 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)}" + "#{Discourse.base_uri}/extra-locales/#{bundle}?v=#{bundle_js_hash(bundle)}" else "#{Discourse.base_uri}/extra-locales/#{bundle}" end diff --git a/config/initializers/006-mini_profiler.rb b/config/initializers/006-mini_profiler.rb index 8a0ceb8a1a8..737e3bbb0dc 100644 --- a/config/initializers/006-mini_profiler.rb +++ b/config/initializers/006-mini_profiler.rb @@ -25,6 +25,7 @@ if defined?(Rack::MiniProfiler) skip = [ /^\/message-bus/, + /^\/extra-locales/, /topics\/timings/, /assets/, /\/user_avatar\//,