URL port removed while redirecting device from rack #3632

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

Originally created by @hakyildiz on GitHub (May 4, 2020).

Environment

  • Python version: 3.6.8
  • NetBox version: v2.8.1

There are devices in a rack.
In the rack page (dcim/rack/{id}), when clik a device (to go to related device /dcim/devices/{id}/), in the url, port is removed.
Thus can not be redireted to the related device url.

http://{netboxip}:[port}/dcim/rack/1/ then click a device, then url becoming http://{netboxip}/dcim/device/1/

Steps to Reproduce

  1. In a rack page (http://{netboxip}:{port}/dcim/rack/{id}/)
  2. Click to a device (on front page)
  3. Next URL is http://{netboxip}/dcim/device/1/ without port

What did you expect to happen?

Redirect to the device url with port

What happened instead?

Redirected to the device url without port

Originally created by @hakyildiz on GitHub (May 4, 2020). <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss 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, and that any plugins have been disabled. --> ### Environment * Python version: 3.6.8 * NetBox version: v2.8.1 There are devices in a rack. In the rack page (dcim/rack/{id}), when clik a device (to go to related device /dcim/devices/{id}/), in the url, port is removed. Thus can not be redireted to the related device url. _http://{netboxip}:[port}/dcim/rack/1/_ then click a device, then url becoming _http://{netboxip}/dcim/device/1/_ ### Steps to Reproduce 1. In a rack page (_http://{netboxip}:{port}/dcim/rack/{id}/_) 2. Click to a device (on front page) 3. Next URL is _http://{netboxip}/dcim/device/1/_ without port ### What did you expect to happen? Redirect to the device url with port ### What happened instead? Redirected to the device url without port
adam closed this issue 2025-12-29 18:30:16 +01:00
Author
Owner

@jeremystretch commented on GitHub (May 4, 2020):

You need to configure your HTTP server to pass the external port number to the WSGI backend. Consult your httpd's documentation for how to do this, or post to our mailing list for assistance.

@jeremystretch commented on GitHub (May 4, 2020): You need to configure your HTTP server to pass the external port number to the WSGI backend. Consult your httpd's documentation for how to do this, or post to our [mailing list](https://groups.google.com/forum/#!forum/netbox-discuss) for assistance.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3632