URL to local storage #2727

Closed
opened 2025-12-29 18:21:26 +01:00 by adam · 5 comments
Owner

Originally created by @lmgonzalezl on GitHub (Jul 5, 2019).

Proposed Changes

URL to internal storage.

In our organization we store photos and documents related to a tenant. I have tried adding a personal label to internal storage but NetBox does not recognize the string as a valid URL.

Example of the required url:
storage1\systems_redes\Location of Nodes

Even if I use the url storage1\sistemas_redes\ without spaces netbox does not recognize it.

I have tried with file: //storage1/systems_redes/ but it does not work either.

Is it possible for NetBox to open a file browser from a supplied URL?

Justification

Link documents to a tenant on an internal storage server.

Thank you

Originally created by @lmgonzalezl on GitHub (Jul 5, 2019). <!-- NOTE: This type of issue should be opened only by those reasonably familiar with NetBox's code base and interested in contributing to its development. Describe the proposed change(s) in detail. --> ### Proposed Changes **URL to internal storage.** In our organization we store photos and documents related to a tenant. I have tried adding a personal label to internal storage but NetBox does not recognize the string as a valid URL. Example of the required url: storage1\systems_redes\Location of Nodes Even if I use the url storage1\sistemas_redes\ without spaces netbox does not recognize it. I have tried with file: //storage1/systems_redes/ but it does not work either. Is it possible for NetBox to open a file browser from a supplied URL? <!-- Provide justification for the proposed change(s). --> ### Justification Link documents to a tenant on an internal storage server. Thank you
adam added the status: under review label 2025-12-29 18:21:26 +01:00
adam closed this issue 2025-12-29 18:21:26 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jul 9, 2019):

I have tried adding a personal label

What are you referring to? A custom link? NetBox simply outputs the specified URL inside an HTML tag, like this:

<a href="{{ URL }}">{{ TEXT }}</a>

How the browser handles that is outside of NetBox's control.

@jeremystretch commented on GitHub (Jul 9, 2019): > I have tried adding a personal label What are you referring to? A custom link? NetBox simply outputs the specified URL inside an HTML tag, like this: ``` <a href="{{ URL }}">{{ TEXT }}</a> ``` How the browser handles that is outside of NetBox's control.
Author
Owner

@lmgonzalezl commented on GitHub (Jul 9, 2019):

Hi Jeremy.

What I would like to do is that the link make reference to a directory in a local server in our network, because i need to open a file browser that contains a photo gallery.

@lmgonzalezl commented on GitHub (Jul 9, 2019): Hi Jeremy. What I would like to do is that the link make reference to a directory in a local server in our network, because i need to open a file browser that contains a photo gallery.
Author
Owner

@lmgonzalezl commented on GitHub (Jul 10, 2019):

What I need is legacy URLs.

https://en.wikipedia.org/wiki/File_URI_scheme

Example of my URL:

file:////storage1/sistemas_redes/LogoAPTF.jpg

or

file:////storage1/sistemas_redes/

When I save the changes Netbox removes the ip from the server.

@lmgonzalezl commented on GitHub (Jul 10, 2019): What I need is legacy URLs. [https://en.wikipedia.org/wiki/File_URI_scheme](url) Example of my URL: _file:////storage1/sistemas_redes/LogoAPTF.jpg_ or _file:////storage1/sistemas_redes/_ When I save the changes Netbox removes the ip from the server.
Author
Owner

@candlerb commented on GitHub (Jul 10, 2019):

You should be able to generate file:/// URLs from custom links - Netbox just outputs whatever URL you generate, and you provide the scheme part in your template.

This sounds like a support question for the google group, where you can show what strings you've given for "Text" and "URL" for your custom ilnk.

@candlerb commented on GitHub (Jul 10, 2019): You should be able to generate `file:///` URLs from custom links - Netbox just outputs whatever URL you generate, and you provide the scheme part in your template. This sounds like a support question for the [google group](https://groups.google.com/forum/#!forum/netbox-discuss), where you can show what strings you've given for "Text" and "URL" for your custom ilnk.
Author
Owner

@jeremystretch commented on GitHub (Jul 10, 2019):

As @candlerb points out, NetBox lets you output whatever you want for the URL. How your web browser handles that is beyond what NetBox can control. Please post to the mailing list if you need further assistance.

@jeremystretch commented on GitHub (Jul 10, 2019): As @candlerb points out, NetBox lets you output whatever you want for the URL. How your web browser handles that is beyond what NetBox can control. Please post to the mailing list if you need further assistance.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2727