-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
NetBox version
v3.0.3
Python version
3.7
Steps to Reproduce
- On a device with populated bays
- Click the red minus buttom to depopulate a child-device from the bay
- 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
Line 2158 in 9e5d41c
| return redirect('dcim:device', pk=device_bay.device.pk) |
where the return is new generated url, in stead of the return url
Metadata
Metadata
Assignees
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application