Opened 3 weeks ago

Closed 3 weeks ago

Last modified 3 weeks ago

#37058 closed Bug (worksforme)

_facets query parameters doubled on filter click

Reported by: Zbynek Konecny Owned by:
Component: contrib.admin Version: 6.0
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

To reproduce

  • navigate to an admin page listing entities of a given type that contains filters, in my case https://dev.geogebra.net/ggbtrans/admin/properties/property/
  • click "Show counts", URL becomes https://dev.geogebra.net/ggbtrans/admin/properties/property/?_facets=True (so far so good)
  • click one option in one of the filters

Actual

  • URL becomes https://dev.geogebra.net/ggbtrans/admin/properties/property/?_facets=True&_facets=True&category__id__exact=15

Expected

  • URL becomes https://dev.geogebra.net/ggbtrans/admin/properties/property/?_facets=True&category__id__exact=15

Note
The number of extra URL parameters does not increase by 1 on each click, but it doubles, so if you browse through ~10 categories, you'll get a "URL too long" error page

Environment
Django 6.0.4 running via uwsgi 2.0.31 with an NGinX proxy

Change History (3)

comment:1 by Jacob Walls, 3 weeks ago

Thanks -- can you provide a sample filter? With plain field names in list_filter I can't reproduce, so perhaps you are using something more custom.

comment:2 by Jacob Walls, 3 weeks ago

Resolution: worksforme
Status: newclosed

comment:3 by Jacob Walls, 3 weeks ago

Component: Uncategorizedcontrib.admin
Type: UncategorizedBug
Note: See TracTickets for help on using tickets.
Back to Top