pallets / werkzeug

The comprehensive WSGI web application library.
https://werkzeug.palletsprojects.com
BSD 3-Clause "New" or "Revised" License
6.65k stars 1.73k forks source link

debugger works on urls with query string #2942

Closed davidism closed 2 months ago

davidism commented 2 months ago

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.

fixes #2918