Images URLs not working when a BASE_PATH is configured #987

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

Originally created by @ppadrons on GitHub (May 24, 2017).

Issue type: bug report

Python version: 2.7.5
NetBox version: v2.0.3

When a BASE_PATH is configured in configuration.py file, new Images links do not work properly.

How to reproduce:

Originally created by @ppadrons on GitHub (May 24, 2017). <!-- Please note: GitHub issues are to be used only for feature requests and bug reports. For installation assistance or general discussion, please join us on the mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please indicate "bug report" or "feature request" below. Be sure to search the existing set of issues (both open and closed) to see if a similar issue has already been raised. --> ### Issue type: bug report <!-- If filing a bug, please indicate the version of Python and NetBox you are running. (This is not necessary for feature requests.) --> **Python version:** 2.7.5 **NetBox version:** v2.0.3 <!-- If filing a bug, please record the exact steps taken to reproduce the bug and any errors messages that are generated. If filing a feature request, please precisely describe the data model or workflow you would like to see implemented, and provide a use case. --> When a BASE_PATH is configured in configuration.py file, new Images links do not work properly. How to reproduce: - Configure Netbox to work with a BASE_PATH (BASE_PATH = 'netbox/' for example) - Create a new rack, an attach an image (http://djangoserver/netbox/dcim/racks/11/) - Image is attached and you can see it in the "Images" submenu - When yo try to navigate to the new image, URL is no well constructed and does not include the BASE_PATH. The new attachment links to http://djangoserver/media/image-attachments/rack_11_DSCI0261_mSDMPzo.jpg, but it should redirect to http://djangoserver/netbox/media/image-attachments/rack_11_DSCI0261_mSDMPzo.jpg
adam added the type: bug label 2025-12-29 16:27:36 +01:00
adam closed this issue 2025-12-29 16:27:36 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#987