Improve URL type custom field #8136

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

Originally created by @OliElli on GitHub (May 30, 2023).

NetBox version

v3.5.1

Feature type

Change to existing functionality

Proposed functionality

Extending https://github.com/netbox-community/netbox/issues/7118

I would like a markdown style "display name" for a URL, Eg:

Current field:
http://example.com/a-very-long/link/that/makes/things/look/messy?in_the_ui

Proposed field:
[nice text](http://example.com/a-very-long/link/that/makes/things/look/messy?in_the_ui)

That renders like this:
nice text

Use case

Makes the URL custom field look neater

Database changes

No response

External dependencies

No response

Originally created by @OliElli on GitHub (May 30, 2023). ### NetBox version v3.5.1 ### Feature type Change to existing functionality ### Proposed functionality Extending https://github.com/netbox-community/netbox/issues/7118 I would like a markdown style "display name" for a URL, Eg: Current field: http://example.com/a-very-long/link/that/makes/things/look/messy?in_the_ui Proposed field: `[nice text](http://example.com/a-very-long/link/that/makes/things/look/messy?in_the_ui)` That renders like this: [nice text](http://example.com/a-very-long/link/that/makes/things/look/messy?in_the_ui) ### Use case Makes the URL custom field look neater ### Database changes _No response_ ### External dependencies _No response_
adam added the type: feature label 2025-12-29 20:32:53 +01:00
adam closed this issue 2025-12-29 20:32:53 +01:00
Author
Owner

@DanSheps commented on GitHub (May 30, 2023):

Seems reasonable, not sure how the best way to implement this would be.

Might be easier to allow markdown rendering in a regular text field to allow for this and not worry about the URL field. It looks like long text you can already render a markdown URL.

@DanSheps commented on GitHub (May 30, 2023): Seems reasonable, not sure how the best way to implement this would be. Might be easier to allow markdown rendering in a regular text field to allow for this and not worry about the URL field. It looks like long text you can already render a markdown URL.
Author
Owner

@stavr666 commented on GitHub (May 31, 2023):

It looks like long text you can already render a markdown URL

It works in demo:
image

@stavr666 commented on GitHub (May 31, 2023): > It looks like long text you can already render a markdown URL It works in demo: ![image](https://github.com/netbox-community/netbox/assets/84839985/09511cb9-b036-4845-a97a-f4b65bf910c2)
Author
Owner

@OliElli commented on GitHub (May 31, 2023):

So it does! I'll use that field then and close this.

@OliElli commented on GitHub (May 31, 2023): So it does! I'll use that field then and close this.
Author
Owner

@DanSheps commented on GitHub (May 31, 2023):

It might still be worth it adding markdown to the "Text" custom field type, if you desire that, feel free to open up a FR for that.

@DanSheps commented on GitHub (May 31, 2023): It might still be worth it adding markdown to the "Text" custom field type, if you desire that, feel free to open up a FR for that.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8136