Cancel button on interface edit takes back to different page rather device page #1898

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

Originally created by @a31amit on GitHub (Aug 7, 2018).

Environment

  • Python version: 3.4.5
  • NetBox version: 2.4.0

cancel button on interface edit web view takes back to endpoint netboxinstance/dcim/interfaces/inteface_id whereas in netbox 2.3.5 it takes me back to device page.

Jeremy updated in the slack channel that its because of a new change since interfaces have dedicated view now.
and have suggested to appending ?return_url=/dcim/devices/<pk>/ to cancel button link in edit interface.

Steps to Reproduce

Edit a interface, Click on Cancel Button

Expected Behavior

Return back to its device page

Observed Behavior

It takes to interfaces page also there is no menu navigate for this web view yet.

Originally created by @a31amit on GitHub (Aug 7, 2018). <!-- NOTE: This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment * Python version: 3.4.5 * NetBox version: 2.4.0 cancel button on interface edit web view takes back to endpoint netboxinstance/dcim/interfaces/inteface_id whereas in netbox 2.3.5 it takes me back to device page. Jeremy updated in the slack channel that its because of a new change since interfaces have dedicated view now. and have suggested to appending `?return_url=/dcim/devices/<pk>/` to cancel button link in edit interface. ### Steps to Reproduce Edit a interface, Click on Cancel Button <!-- What did you expect to happen? --> ### Expected Behavior Return back to its device page <!-- What happened instead? --> ### Observed Behavior It takes to interfaces page also there is no menu navigate for this web view yet.
adam added the type: bugstatus: accepted labels 2025-12-29 17:20:12 +01:00
adam closed this issue 2025-12-29 17:20:12 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1898