Redirect back to rack when editing/deleting a device #652

Closed
opened 2025-12-29 16:24:21 +01:00 by adam · 5 comments
Owner

Originally created by @Gelob on GitHub (Jan 23, 2017).

If you view a rack and click on a device to edit it, you are returned to the main devices page instead of the rack you were editing. You may be editing the device to unrack it, move rack positions, or even delete it.

Originally created by @Gelob on GitHub (Jan 23, 2017). If you view a rack and click on a device to edit it, you are returned to the main devices page instead of the rack you were editing. You may be editing the device to unrack it, move rack positions, or even delete it.
adam closed this issue 2025-12-29 16:24:21 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jan 23, 2017):

What link are you clicking from the rack view? AFAICT there's no direct link to edit a device; you have to first go to the device, and then edit it. Although there is a direct link to add a device from the rack view.

@jeremystretch commented on GitHub (Jan 23, 2017): What link are you clicking from the rack view? AFAICT there's no direct link to edit a device; you have to first go to the device, and then edit it. Although there is a direct link to _add_ a device from the rack view.
Author
Owner

@Gelob commented on GitHub (Jan 24, 2017):

I'm clicking the device and then editing it as you described. I see the logic in why it would direct back to devices but I wasn't sure if there was a way to detect where you edited the device from or not.

@Gelob commented on GitHub (Jan 24, 2017): I'm clicking the device and then editing it as you described. I see the logic in why it would direct back to devices but I wasn't sure if there was a way to detect where you edited the device from or not.
Author
Owner

@jeremystretch commented on GitHub (Jan 25, 2017):

After editing a device, you should be returned to the view showing that device. Or are you talking about bulk-editing a set of devices?

@jeremystretch commented on GitHub (Jan 25, 2017): After editing a device, you should be returned to the view showing that device. Or are you talking about bulk-editing a set of devices?
Author
Owner

@Gelob commented on GitHub (Jan 25, 2017):

Not talking about bulk editing. I must be thinking of a different scenario because you are right and I can't seem to re-create the issue I was having now.

@Gelob commented on GitHub (Jan 25, 2017): Not talking about bulk editing. I must be thinking of a different scenario because you are right and I can't seem to re-create the issue I was having now.
Author
Owner

@0lzi commented on GitHub (Dec 13, 2018):

When in URL /dcim/racks/XXX/ you select a device to delete it takes you to dcim/devices/XXX/ you select delete and takes you to dcim/devices/XXX/delete/ after confirmation it takes you to /dcim/devices/

I think a redirect from dcim/devices/XXX/delete/ back to /dcim/racks/XXX/ would be worth doing if you have to delete a lot of items from a rack, otherwise you have to either navigate back three times to get back to the rack or select Site > Rack to get back to the rack you were working on.

@0lzi commented on GitHub (Dec 13, 2018): When in URL `/dcim/racks/XXX/` you select a device to delete it takes you to `dcim/devices/XXX/` you select delete and takes you to `dcim/devices/XXX/delete/` after confirmation it takes you to `/dcim/devices/ ` I think a redirect from `dcim/devices/XXX/delete/` back to `/dcim/racks/XXX/` would be worth doing if you have to delete a lot of items from a rack, otherwise you have to either navigate back three times to get back to the rack or select Site > Rack to get back to the rack you were working on.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#652