Skip to content

Custom links with variables use improper URL encoding when spaces are included in the site name #12822

@purgeitall

Description

@purgeitall

NetBox version

v3.5.3

Python version

3.10

Steps to Reproduce

  1. Create site with space in it - Example: "Test Site"
  2. Create custom link with content type "DCIM: Site".
  3. In the link url, use format: https://www.website.com/anything/{{object.name}}

Expected Behavior

When the link is selected, the variable should be replaced with "test site". proper URL encoding would look like this:

https://www.website.com/anything/test%20site

Observed Behavior

The link sends me to this URL which is what would be used when submitting a query. This may work for some URLs but with sharepoint all our links are now invalid.

https://www.website.com/anything/test+site

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions