Opened 2 months ago

Last modified 6 weeks ago

#28635 new Bug

admin's preserved filters don't work if the URL has non-ASCII characters in it

Reported by: Wenli Tsai Owned by: nobody
Component: contrib.admin Version: 1.11
Severity: Normal Keywords: add_preserved_filters
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Wenli Tsai)

The preserved_filters won't be correctly recovered when url contains unicode prefix.

When save the change form and return to the changelist,
the changelist url should be /admin/myApp/台灣Model/?cityID=a.

But we got /admin/myApp/台灣Model/?_changelist_filters=cityID%3Da,
and 302 redirected to /admin/myApp/台灣Model/?e=1.

Change History (5)

comment:1 Changed 2 months ago by Wenli Tsai

Description: modified (diff)

comment:2 Changed 2 months ago by Wenli Tsai

Summary: Non-ASCII url prefixPreserved filters with non-ASCII url prefix

comment:3 Changed 2 months ago by Wenli Tsai

Summary: Preserved filters with non-ASCII url prefixPreserved filters with unicode url prefix

comment:4 Changed 2 months ago by Wenli Tsai

Description: modified (diff)

comment:5 Changed 8 weeks ago by Tim Graham

Has patch: set
Summary: Preserved filters with unicode url prefixadmin's preserved filters don't work if the URL has non-ASCII characters in it
Triage Stage: UnreviewedAccepted
Note: See TracTickets for help on using tickets.
Back to Top