custom links not working as expected anymore after upgrade 3.4.7 to 3.5.2 #8104

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

Originally created by @CV-KAG on GitHub (May 24, 2023).

NetBox version

v3.5.2

Python version

3.8

Steps to Reproduce

  1. Create a custom field named royalts_name and add content, e.g. the connection name in RoyalTS like hostname
  2. Create a custom link with the URL rtscli://local/action/connect?-n={{ object.custom_field_data['royalts_name'] }}
  3. View an object where the custom link appears and inspect its source

Expected Behavior

Before the upgrade from 3.4.7 to 3.5.2 the URL was shown correctly, e.g. rtscli://local/action/connect?-n=hostname allowing a RoyalTS session to be started automatically.

Observed Behavior

Now the URL from the device object in netbox is shown instead, e.g. https://netbox/dcim/devices/91/

Originally created by @CV-KAG on GitHub (May 24, 2023). ### NetBox version v3.5.2 ### Python version 3.8 ### Steps to Reproduce 1. Create a custom field named royalts_name and add content, e.g. the connection name in RoyalTS like hostname 2. Create a custom link with the URL rtscli://local/action/connect?-n={{ object.custom_field_data['royalts_name'] }} 3. View an object where the custom link appears and inspect its source ### Expected Behavior Before the upgrade from 3.4.7 to 3.5.2 the URL was shown correctly, e.g. rtscli://local/action/connect?-n=hostname allowing a RoyalTS session to be started automatically. ### Observed Behavior Now the URL from the device object in netbox is shown instead, e.g. https://netbox/dcim/devices/91/
adam added the type: bugstatus: under review labels 2025-12-29 20:32:31 +01:00
adam closed this issue 2025-12-29 20:32:31 +01:00
Author
Owner

@jeremystretch commented on GitHub (May 24, 2023):

You likely need to add rtscli to the ALLOWED_URL_SCHEMES configuration parameter, as it is not permitted by default. (Previously releases did not enforce this setting for custom links.)

@jeremystretch commented on GitHub (May 24, 2023): You likely need to add `rtscli` to the [`ALLOWED_URL_SCHEMES`](https://docs.netbox.dev/en/stable/configuration/security/#allowed_url_schemes) configuration parameter, as it is not permitted by default. (Previously releases did not enforce this setting for custom links.)
Author
Owner

@CV-KAG commented on GitHub (May 25, 2023):

Thanks a lot, I must have missed that in the release notes. After adding the option, the link is generated again.

@CV-KAG commented on GitHub (May 25, 2023): Thanks a lot, I must have missed that in the release notes. After adding the option, the link is generated again.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8104