window.location at the beginning of some of the debugger URLs was causing URLs like /path?a=b?__debugger__=yes..., where the existing URL parameters would be part of location and the debugger would concatenate its own incorrectly. Remove window.location completely, so that the new URL is the current URL with the query string replaced. Refactor the URL code to have a common way to construct the URL.
window.location
at the beginning of some of the debugger URLs was causing URLs like/path?a=b?__debugger__=yes...
, where the existing URL parameters would be part oflocation
and the debugger would concatenate its own incorrectly. Removewindow.location
completely, so that the new URL is the current URL with the query string replaced. Refactor the URL code to have a common way to construct the URL.fixes #2918