Opened 16 years ago
Last modified 13 years ago
#7379 closed
middleware redirects in common.py don't pass the same URL parameters correctly. — at Initial Version
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | HTTP handling | Version: | dev |
Severity: | Keywords: | url redirect | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
line 83 of django/middleware/common.py should be:
newurl += '?' + request.METAQUERY_STRING
instead of:
newurl += '?' + request.GET.urlencode()
That will ensure that the query parameters included in the redirect url are
identical to what was included in the original url.
Note:
See TracTickets
for help on using tickets.