﻿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
33132	TestClient doesn't follow redirects that only contain a query string correctly.	Jaap Roes	Jaap Roes	"While running a projects test suite on Django 4.0a1 (using Python 3.8) some tests unexpectedly started failing.

We have a `FormView` that defines the `get_success_url` method as follows:

{{{
def get_success_url(self):
    """"""
    Redirect to self
    """"""
    success = urllib.parse.urlencode({'success': self.n_deleted})
    return f'?{success}'
}}}

In actual browsers this results in a redirect to the original request's path with the querystring attached. The Django TestClient behaved the same way, but after the update to Django 4.0a1 it suddenly redirects to `/?success=1`.

This seems to be caused by the fix for #32790 "	Bug	closed	Testing framework	4.0	Release blocker	fixed			Ready for checkin	1	0	0	0	0	0
