modlinltd / django-advanced-filters

Add advanced filtering abilities to Django admin
https://pypi.org/project/django-advanced-filters/
MIT License
769 stars 172 forks source link

Avoid redirect when selecting a filter #185

Closed YolCruz closed 5 months ago

YolCruz commented 11 months ago

Is your feature request related to a problem? Please describe. When a new filter is selected, the URL to be used is missing a tailing slash, causing a double request

Describe the solution you'd like Add the missing "/" at the end of the URL

Describe alternatives you've considered Forking the project and open a PR

Additional context When selecting a filter, 2 GET requests are made

"GET /admin/advfilters/field_choices/textpicks.textpickseen/ip_address HTTP/1.0" 301 0
"GET /admin/advfilters/field_choices/textpicks.textpickseen/ip_address/ HTTP/1.0" 200 15

The first one causes a redirect to the actual URL that needs to be used