﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36182	"querystring templatetag should render empty querystring as ""?"" not """" when it has removed items from the querydict"	David Feeley	Sarah Boyce	"Hello,
Consider 2 anchors that link to a filtered and unfiltered version of the current page via a GET param foo.

{{{
<a href=""{% querystring foo=None %}"">All Records</a>
<a href=""{% querystring foo=bar %}"">Bar Records Only</a>
}}}

If the user is currently on the filtered page https://example.com/?foo=bar and clicks the first link, the querystring template tag, being empty, will render as """", which means href="""" which the browser will interpret as reload the current (filtered) page.  I believe instead the templatetag should render this case as ""?""

[https://github.com/dfeeley/django/compare/main..empty-querystring]

thanks
Dave
"	Bug	closed	Template system	5.1	Release blocker	fixed	querystring templatetag	David Feeley Tom Carrick Natalia Bidart	Ready for checkin	1	0	0	0	0	0
