From a934369064036e9093fb8baa22f33159e6167cbf Mon Sep 17 00:00:00 2001 From: Nate Berkopec Date: Fri, 29 Dec 2023 09:51:30 +0900 Subject: [PATCH] Page name includes query string --- lib/mini_profiler/timer_struct/page.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mini_profiler/timer_struct/page.rb b/lib/mini_profiler/timer_struct/page.rb index fecb0f46..94769eb4 100644 --- a/lib/mini_profiler/timer_struct/page.rb +++ b/lib/mini_profiler/timer_struct/page.rb @@ -59,7 +59,7 @@ def symbolize_array(array) def initialize(env) timer_id = MiniProfiler.generate_id - page_name = env['PATH_INFO'] + page_name = env['QUERY_STRING'] != "" ? env['PATH_INFO'] + "?" + env['QUERY_STRING'] : env['PATH_INFO'] started_at = (Time.now.to_f * 1000).to_i started = (Process.clock_gettime(Process::CLOCK_MONOTONIC) * 1000).to_i machine_name = env['SERVER_NAME']