Usage of exclamation mark (!) in Custom Links not possible #8987

Closed
opened 2025-12-29 20:43:52 +01:00 by adam · 2 comments
Owner

Originally created by @Azmodeszer on GitHub (Dec 19, 2023).

Originally assigned to: @Azmodeszer on GitHub.

Deployment Type

Self-hosted

NetBox Version

3.6.6

Python Version

3.11

Steps to Reproduce

  1. Set up a Custom Link.
  2. Put https://<IP>/screens/dashboard.html#!/APView/{{ object.interfaces.filter(mac_address__isnull=False).first().mac_address }} as the Link URL.

Similar to #13011. Also see #14553.

Expected Behavior

The URL should be rendered with the ! intact.

Observed Behavior

The ! is encoded as %21, resulting in a broken link.

Originally created by @Azmodeszer on GitHub (Dec 19, 2023). Originally assigned to: @Azmodeszer on GitHub. ### Deployment Type Self-hosted ### NetBox Version 3.6.6 ### Python Version 3.11 ### Steps to Reproduce 1. Set up a Custom Link. 2. Put `https://<IP>/screens/dashboard.html#!/APView/{{ object.interfaces.filter(mac_address__isnull=False).first().mac_address }}` as the Link URL. Similar to #13011. Also see #14553. ### Expected Behavior The URL should be rendered with the ! intact. ### Observed Behavior The ! is encoded as %21, resulting in a broken link.
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 20:43:52 +01:00
adam closed this issue 2025-12-29 20:43:52 +01:00
Author
Owner

@jeremystretch commented on GitHub (Dec 21, 2023):

The exclamation mark probably needs to be added to the list of characters excluded from escaping when calling urllib.parse.quote().

@jeremystretch commented on GitHub (Dec 21, 2023): The exclamation mark probably needs to be added to the list of characters excluded from escaping when calling `urllib.parse.quote()`.
Author
Owner

@Azmodeszer commented on GitHub (Dec 21, 2023):

I can own this and do the pull request, no problem.

@Azmodeszer commented on GitHub (Dec 21, 2023): I can own this and do the pull request, no problem.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8987