diff --git a/tests/run-tests.html b/tests/run-tests.html
index b4de57e989..d2bff43430 100644
--- a/tests/run-tests.html
+++ b/tests/run-tests.html
@@ -686,7 +686,7 @@ Test.AnotherWay._test_object_t.prototype.open_window=function( url, fn, timeout_
timeout_seconds=4;
}
var no_close=document.getElementById( "dont_close_test_windows" );
- var action={ action_kind: "window", wnd_url: url.toString(), wnd_wnd: null, wnd_fn: fn, wnd_timeout_milliseconds: timeout_seconds*1000, wnd_no_close: no_close.checked };
+ var action={ action_kind: "window", wnd_url: url.toString() + (window.location.search || ""), wnd_wnd: null, wnd_fn: fn, wnd_timeout_milliseconds: timeout_seconds*1000, wnd_no_close: no_close.checked };
this.delay_total_milliseconds_left+=Test.AnotherWay._action_estimate_milliseconds( action );
this.delay_actions.push( action );
}