Allow as URL link "file://server-xx/FolderXYZ/" for Custom Field #6451

Closed
opened 2025-12-29 19:40:53 +01:00 by adam · 1 comment
Owner

Originally created by @LHBL2003 on GitHub (May 5, 2022).

NetBox version

v3.2.2

Feature type

New functionality

Proposed functionality

Ein Custom Field kann man als Type URL konfigurieren.

z.B.
Models: DCIM > device
Name: "DCIM_Device_Dokumentation"
Label: Dokumentation
Type: URL
Description: Pfad zur Dokumentation des Einzelsystems

If I navigate to the Device, the field "Documentation" is displayed.
If I edit the device and write https://www.google.de for documentation, I can open this page in the device.
If I write "file://server-xxx/FolderXXX/"
So the link does not react.

My local HTML test (C:\temp\Test.html) works with:
<a href="file://server-xxx/FolderXXX/" target="_blank">Folder XXX</a>

If it is a limitation by NetBox, I would be happy if URLs like "file://" could be supported.

Use case

Quickly navigate to documents such as installation instructions and manuals stored in a share directory.

Database changes

No response

External dependencies

No response

Originally created by @LHBL2003 on GitHub (May 5, 2022). ### NetBox version v3.2.2 ### Feature type New functionality ### Proposed functionality Ein Custom Field kann man als Type URL konfigurieren. z.B. Models: DCIM > device Name: "DCIM_Device_Dokumentation" Label: Dokumentation Type: URL Description: Pfad zur Dokumentation des Einzelsystems If I navigate to the Device, the field "Documentation" is displayed. If I edit the device and write https://www.google.de for documentation, I can open this page in the device. If I write "file://server-xxx/FolderXXX/" So the link does not react. My local HTML test (C:\temp\Test.html) works with: `<a href="file://server-xxx/FolderXXX/" target="_blank">Folder XXX</a>` If it is a limitation by NetBox, I would be happy if URLs like "file://" could be supported. ### Use case Quickly navigate to documents such as installation instructions and manuals stored in a share directory. ### Database changes _No response_ ### External dependencies _No response_
adam added the type: feature label 2025-12-29 19:40:53 +01:00
adam closed this issue 2025-12-29 19:40:53 +01:00
Author
Owner

@kkthxbye-code commented on GitHub (May 6, 2022):

This is a browser limitation. All the major browsers disallow file:// links unless the page you are visiting itself is a local file (which is why it works when you are testing locally).

Also, in the future, please make sure your issue is in English and you provide clear replication steps.

@kkthxbye-code commented on GitHub (May 6, 2022): This is a browser limitation. All the major browsers disallow file:// links unless the page you are visiting itself is a local file (which is why it works when you are testing locally). Also, in the future, please make sure your issue is in English and you provide clear replication steps.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6451