Change to the ordering of 'add_button' parameters broke fix #19990 #11619

Closed
opened 2025-12-29 21:47:42 +01:00 by adam · 0 comments
Owner

Originally created by @9er-tom on GitHub (Sep 16, 2025).

NetBox Edition

NetBox Community

NetBox Version

v4.4.0

Python Version

3.12

Steps to Reproduce

  1. Navigate to object list view which has missing prerequisites
  2. Click on '+ Add' button
  3. Observe how netbox tries to navigate to '/<object_list>/None' path

Expected Behavior

Button should navigate to <object_list>/add?return_url=<object_list>

Observed Behavior

Changing the order of 'action' and 'return_url' breakes #19990 due to the django template in missing_prerequisites.html interpreting 'request.path' as the action instead of the return_url. This leads to the missing prerequisite Add button navigating to /object/objects/None

Originally posted by @9er-tom in d433456

Originally created by @9er-tom on GitHub (Sep 16, 2025). ### NetBox Edition NetBox Community ### NetBox Version v4.4.0 ### Python Version 3.12 ### Steps to Reproduce 1. Navigate to object list view which has missing prerequisites 2. Click on '+ Add' button 3. Observe how netbox tries to navigate to '<url>/<object_list>/None' path ### Expected Behavior Button should navigate to <object_list>/add?return_url=<object_list> ### Observed Behavior > Changing the order of 'action' and 'return_url' breakes #19990 due to the django template in missing_prerequisites.html interpreting 'request.path' as the action instead of the return_url. This leads to the missing prerequisite Add button navigating to <url>/object/objects/None _Originally posted by @9er-tom in [d433456](https://github.com/netbox-community/netbox/commit/d433456e2f1249425e59f88694f52a0d94cff38d#r165867452)_
adam added the type: bugstatus: duplicate labels 2025-12-29 21:47:42 +01:00
adam closed this issue 2025-12-29 21:47:42 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11619