How to use relative links instead of base_url in elevations.py? #6674
Replies: 2 comments 3 replies
-
I just commented out the block about self.base_url and set it to '' and it seems to have fixed it.
|
Beta Was this translation helpful? Give feedback.
-
If you are getting the wrong hostname in the URLs generated for SVGs, it's because your proxy is setting the Host: header to be the proxy target, not the hostname from the original request. The sample configurations for Apache and Nginx show how to do this properly. For example, in Apache it's It might also work if your proxy sets the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In my rack elevations, all the populated slots have a base_url set of the server's internal hostname (instead of the published name). The unpopulated slots have the "add device" link and it is relative.
I don't have a base_url configured in configuration.py although I do have a BASE_PATH = 'netbox/'
Is there some way to make the populated slots in the svg relative links?
Beta Was this translation helpful? Give feedback.
All reactions