Skip to content

Redirecturl of device-bay depopulate is not followed #7360

@PieterL75

Description

@PieterL75

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

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 implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions