Editing ports should return to the device page #4062

Closed
opened 2025-12-29 18:32:55 +01:00 by adam · 1 comment
Owner

Originally created by @cpmills1975 on GitHub (Sep 1, 2020).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version: 3.7
  • NetBox version: 2.9.2

Proposed Functionality

When creating a new port on a device, clicking the create button returns the browser to the device page. If the port is edited, clicking the Update button takes the browser to the detail page for that port rather than back to the device page. IMHO this doesn't 'feel' right and is probably a bug, but since it's not service affecting, I've raised it as an FR instead.

As an extension to this functionality, it would be nice to return the device page to displaying the table of port types being created/edited, i.e. when returning from adding/editing a console port, the device page should return to displaying console ports not interfaces as it does currently, however I have tried suffixing the URL with the href of the table tab and it doesn't do anything so perhaps this isn't possible or there is some other magic going on when the tab is clicked?

Use Case

While viewing a device, navigating to the edit page for a port is a single click, but after completing the update (and pressing the update button), returning to whence we came requires an additional click in the 'breadcrumbs' and doesn't feel right.

Database Changes

None

External Dependencies

None.

Originally created by @cpmills1975 on GitHub (Sep 1, 2020). Originally assigned to: @jeremystretch on GitHub. <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for proposing specific new features or enhancements. If you have a general idea or question, please post to our mailing list instead of opening an issue: https://groups.google.com/forum/#!forum/netbox-discuss NOTE: Due to an excessive backlog of feature requests, we are not currently accepting any proposals which significantly extend NetBox's feature scope. 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.7 * NetBox version: 2.9.2 <!-- Describe in detail the new functionality you are proposing. Include any specific changes to work flows, data models, or the user interface. --> ### Proposed Functionality When creating a new port on a device, clicking the create button returns the browser to the device page. If the port is edited, clicking the Update button takes the browser to the detail page for that port rather than back to the device page. IMHO this doesn't 'feel' right and is probably a bug, but since it's not service affecting, I've raised it as an FR instead. As an extension to this functionality, it would be nice to return the device page to displaying the table of port types being created/edited, i.e. when returning from adding/editing a console port, the device page should return to displaying console ports not interfaces as it does currently, however I have tried suffixing the URL with the href of the table tab and it doesn't do anything so perhaps this isn't possible or there is some other magic going on when the tab is clicked? <!-- Convey an example use case for your proposed feature. Write from the perspective of a NetBox user who would benefit from the proposed functionality and describe how. ---> ### Use Case While viewing a device, navigating to the edit page for a port is a single click, but after completing the update (and pressing the update button), returning to whence we came requires an additional click in the 'breadcrumbs' and doesn't feel right. <!-- Note any changes to the database schema necessary to support the new feature. For example, does the proposal require adding a new model or field? (Not all new features require database changes.) ---> ### Database Changes None <!-- List any new dependencies on external libraries or services that this new feature would introduce. For example, does the proposal require the installation of a new Python package? (Not all new features introduce new dependencies.) --> ### External Dependencies None.
adam added the type: bugstatus: accepted labels 2025-12-29 18:32:55 +01:00
adam closed this issue 2025-12-29 18:32:55 +01:00
Author
Owner

@jeremystretch commented on GitHub (Sep 2, 2020):

As an extension to this functionality, it would be nice to return the device page to displaying the table of port types being created/edited

To my knowledge, Bootstrap 3.4 unfortunately doesn't support this. Something to consider for the future, though.

@jeremystretch commented on GitHub (Sep 2, 2020): > As an extension to this functionality, it would be nice to return the device page to displaying the table of port types being created/edited To my knowledge, [Bootstrap 3.4](https://getbootstrap.com/docs/3.4/javascript/#tabs) unfortunately doesn't support this. Something to consider for the future, though.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4062