A platform for community discussion. Free, open, simple.
FIX: don't preload json on static routes
Sam3937ff042534
diff --git a/app/controllers/static_controller.rb b/app/controllers/static_controller.rbindex 93cfc48011a..701644c7b63 100644--- a/app/controllers/static_controller.rb+++ b/app/controllers/static_controller.rb@@ -5,6 +5,7 @@ class StaticController < ApplicationControllerskip_before_action :check_xhr, :redirect_to_login_if_requiredskip_before_action :verify_authenticity_token, only: [:brotli_asset, :cdn_asset, :enter, :favicon, :service_worker_asset]+ skip_before_action :preload_json, only: [:brotli_asset, :cdn_asset, :enter, :favicon, :service_worker_asset]PAGES_WITH_EMAIL_PARAM = ['login', 'password_reset', 'signup']