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']