Dashboard widgets incorrectly concatenate params #7981

Closed
opened 2025-12-29 20:30:49 +01:00 by adam · 0 comments
Owner

Originally created by @arthanson on GitHub (May 2, 2023).

Originally assigned to: @arthanson on GitHub.

NetBox version

v3.5.0

Python version

3.8

Steps to Reproduce

  1. create a new widget of object list configuration
  2. choose model "DCIM > Site"
  3. Put "10" in Page size
  4. put {"tenant_id": 5} in URL parameters
  5. click save

Expected Behavior

widget will show list based on filtered params.

Observed Behavior

All sites are shown. Debugging shows the URL passed to the view is "?tenant_id=5?page_size=10" (note the two "?") correct url should have "&" as the param separator.

Originally created by @arthanson on GitHub (May 2, 2023). Originally assigned to: @arthanson on GitHub. ### NetBox version v3.5.0 ### Python version 3.8 ### Steps to Reproduce 1. create a new widget of object list configuration 2. choose model "DCIM > Site" 3. Put "10" in Page size 4. put {"tenant_id": 5} in URL parameters 5. click save ### Expected Behavior widget will show list based on filtered params. ### Observed Behavior All sites are shown. Debugging shows the URL passed to the view is "?tenant_id=5?page_size=10" (note the two "?") correct url should have "&" as the param separator.
adam added the type: bugstatus: accepted labels 2025-12-29 20:30:49 +01:00
adam closed this issue 2025-12-29 20:30:49 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7981