Usage of Comma in Custom Links not possible #8246

Closed
opened 2025-12-29 20:34:18 +01:00 by adam · 1 comment
Owner

Originally created by @v0tti on GitHub (Jun 26, 2023).

Originally assigned to: @v0tti on GitHub.

NetBox version

v3.5.2

Python version

3.10

Steps to Reproduce

  1. Create Custom Link
  2. Enter https://www.tim-online.nrw.de/tim-online2/?center={{ object.latitude }},{{ object.longitude }}&icon=true as Link URL

Expected Behavior

I would expect the comma character in the center= parameter to be rendered as a comma (,).

Observed Behavior

The comma gets replaced with %2C.
The map service we are using does not show the location because it needs a comma character between longitude and latitude in order to display.

Originally created by @v0tti on GitHub (Jun 26, 2023). Originally assigned to: @v0tti on GitHub. ### NetBox version v3.5.2 ### Python version 3.10 ### Steps to Reproduce 1. Create Custom Link 2. Enter `https://www.tim-online.nrw.de/tim-online2/?center={{ object.latitude }},{{ object.longitude }}&icon=true` as Link URL ### Expected Behavior I would expect the comma character in the `center=` parameter to be rendered as a comma (`,`). ### Observed Behavior The comma gets replaced with `%2C`. The map service we are using does not show the location because it needs a comma character between longitude and latitude in order to display.
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 20:34:18 +01:00
adam closed this issue 2025-12-29 20:34:18 +01:00
Author
Owner

@v0tti commented on GitHub (Jun 26, 2023):

I would be happy to open a PR that's fixing this by adding the comma character to the list of excluded characters for URL safe encoding if this gets accepted.

@v0tti commented on GitHub (Jun 26, 2023): I would be happy to open a PR that's fixing this by adding the comma character to the list of excluded characters for URL safe encoding if this gets accepted.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8246