There are code paths through the middleware which don't call get_redirected_url.