Custom link HREF empty #10448

Closed
opened 2025-12-29 21:31:34 +01:00 by adam · 2 comments
Owner

Originally created by @jkoopmann on GitHub (Nov 6, 2024).

Deployment Type

Self-hosted

Triage priority

N/A

NetBox Version

v4.1.6

Python Version

3.12.3

Steps to Reproduce

  1. Create a custom link for dcim.device
  2. Link text: "Push configuration"
  3. Link URL: anything. else. https://www.heise.de

Expected Behavior

When clicking the button it should open the webpage.

Observed Behavior

The href seems to be empty:

<a href="" target="_blank" class="btn btn-sm btn-outline-secondary">Push Configuration</a>

Originally created by @jkoopmann on GitHub (Nov 6, 2024). ### Deployment Type Self-hosted ### Triage priority N/A ### NetBox Version v4.1.6 ### Python Version 3.12.3 ### Steps to Reproduce 1. Create a custom link for dcim.device 2. Link text: "Push configuration" 3. Link URL: anything. else. https://www.heise.de ### Expected Behavior When clicking the button it should open the webpage. ### Observed Behavior The href seems to be empty: `<a href="" target="_blank" class="btn btn-sm btn-outline-secondary">Push Configuration</a>`
adam closed this issue 2025-12-29 21:31:35 +01:00
Author
Owner

@jeremystretch commented on GitHub (Nov 7, 2024):

This works as expected. Check your ALLOWED_URL_SCHEMES to ensure that the https scheme has not been mistakenly omitted.

@jeremystretch commented on GitHub (Nov 7, 2024): This works as expected. Check your [`ALLOWED_URL_SCHEMES`](https://netbox.readthedocs.io/en/stable/configuration/security/#allowed_url_schemes) to ensure that the `https` scheme has not been mistakenly omitted.
Author
Owner

@jkoopmann commented on GitHub (Nov 7, 2024):

Hi @jeremystretch and thanks.

However: It was previously set to *. Now I have

Allowed URL schemes ('http','https','telnet','ssh','vnc')

but still no luck. Still empty refs. This netbox is running behind a HA-proxy. All sorts forwarded-headers are provided, esp.

http-request set-header X-Forwarded-Proto https

What else could I be looking for?

@jkoopmann commented on GitHub (Nov 7, 2024): Hi @jeremystretch and thanks. However: It was previously set to *. Now I have Allowed URL schemes ('http','https','telnet','ssh','vnc') but still no luck. Still empty refs. This netbox is running behind a HA-proxy. All sorts forwarded-headers are provided, esp. http-request set-header X-Forwarded-Proto https What else could I be looking for?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10448