redirect_url ignored when editing an interface #5656

Closed
opened 2025-12-29 19:30:44 +01:00 by adam · 4 comments
Owner

Originally created by @amit177 on GitHub (Nov 12, 2021).

NetBox version

v3.0.10

Python version

3.8

Steps to Reproduce

  1. Go to a device with an interface
  2. Editing a field in the interface (ex, MAC Address)
  3. Click Save

Expected Behavior

After clicking Save, the page should redirect to the path in the return_url parameter

Observed Behavior

After clicking Save, the page refreshes and the return_url parameter is removed, showing the exact same edit page.

Originally created by @amit177 on GitHub (Nov 12, 2021). ### NetBox version v3.0.10 ### Python version 3.8 ### Steps to Reproduce 1. Go to a device with an interface 2. Editing a field in the interface (ex, MAC Address) 3. Click Save ### Expected Behavior After clicking Save, the page should redirect to the path in the `return_url` parameter ### Observed Behavior After clicking Save, the page refreshes and the `return_url` parameter is removed, showing the exact same edit page.
adam added the type: bugstatus: accepted labels 2025-12-29 19:30:44 +01:00
adam closed this issue 2025-12-29 19:30:44 +01:00
Author
Owner

@jeremystretch commented on GitHub (Nov 12, 2021):

I'm not able to reproduce this on v3.0.10. After saving the form, I'm redirected back to the device interfaces list as expected.

@jeremystretch commented on GitHub (Nov 12, 2021): I'm not able to reproduce this on v3.0.10. After saving the form, I'm redirected back to the device interfaces list as expected.
Author
Owner

@amit177 commented on GitHub (Nov 13, 2021):

Seems like it's not happening on the demo either, might be something with my install.

@amit177 commented on GitHub (Nov 13, 2021): Seems like it's not happening on the demo either, might be something with my install.
Author
Owner

@amit177 commented on GitHub (Nov 26, 2021):

I am able to reproduce it again, seems like my steps were wrong.
Instead of clicking Save, click Enter on the keyboard.

@amit177 commented on GitHub (Nov 26, 2021): I am able to reproduce it again, seems like my steps were wrong. Instead of clicking Save, click Enter on the keyboard.
Author
Owner

@amit177 commented on GitHub (Dec 3, 2021):

@jeremystretch are you able to reproduce with the new steps ^?

@amit177 commented on GitHub (Dec 3, 2021): @jeremystretch are you able to reproduce with the new steps ^?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5656