A platform for community discussion. Free, open, simple.
DEV: Ensure Mini Profiler's `cookie_path` is not empty or nil (#16039)
Osama Sayegh9c1ab97c0181
diff --git a/config/initializers/006-mini_profiler.rb b/config/initializers/006-mini_profiler.rbindex b1d8b3d1b31..2f80ebffc16 100644--- a/config/initializers/006-mini_profiler.rb+++ b/config/initializers/006-mini_profiler.rb@@ -70,7 +70,7 @@ if defined?(Rack::MiniProfiler) && defined?(Rack::MiniProfiler::Config)# Cookie path should be set to the base path so Discourse's session cookie path# does not get clobbered.- Rack::MiniProfiler.config.cookie_path = Discourse.base_path+ Rack::MiniProfiler.config.cookie_path = Discourse.base_path.presence || "/"Rack::MiniProfiler.config.position = 'left'Rack::MiniProfiler.config.backtrace_ignores ||= []