DEV: Ensure Mini Profiler's cookie_path is not empty or nil (#16039)

Follow-up to 9c50c69bd2.
This commit is contained in:
Osama Sayegh 2022-02-23 22:18:58 +03:00 committed by GitHub
parent c80730ea4a
commit 9c1ab97c01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ||= []