Redirecturl of device-bay depopulate is not followed #5419

Closed
opened 2025-12-29 19:27:45 +01:00 by adam · 0 comments
Owner

Originally created by @PieterL75 on GitHub (Sep 24, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.0.3

Python version

3.7

Steps to Reproduce

  1. On a device with populated bays
  2. Click the red minus buttom to depopulate a child-device from the bay
  3. confirm that it can be removed

Expected Behavior

As per the URL of the Red minus button, the page should return to the device-bay overview
https://netbox/dcim/device-bays/7/depopulate/?return_url=/dcim/devices/5/device-bays/

Observed Behavior

The redirect goes to the device page
https://netbox/dcim/devices/5/

I assume this has to do with line
9e5d41c48a/netbox/dcim/views.py (L2158)
where the return is new generated url, in stead of the return url

Originally created by @PieterL75 on GitHub (Sep 24, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.0.3 ### Python version 3.7 ### Steps to Reproduce 1. On a device with populated bays 2. Click the red minus buttom to depopulate a child-device from the bay 3. confirm that it can be removed ### Expected Behavior As per the URL of the Red minus button, the page should return to the device-bay overview https://netbox/dcim/device-bays/7/depopulate/?return_url=/dcim/devices/5/device-bays/ ### Observed Behavior The redirect goes to the device page https://netbox/dcim/devices/5/ I assume this has to do with line https://github.com/netbox-community/netbox/blob/9e5d41c48af5d5b93e1c23973300e524a6e46f2b/netbox/dcim/views.py#L2158 where the return is new generated url, in stead of the return url
adam added the type: bugstatus: accepted labels 2025-12-29 19:27:45 +01:00
adam closed this issue 2025-12-29 19:27:46 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5419