1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #14432: Fix hyperlinks for global search result attributes

This commit is contained in:
Jeremy Stretch
2023-12-07 09:52:40 -05:00
parent f58d80643c
commit 5d2f499ffb
2 changed files with 9 additions and 1 deletions

View File

@@ -5,7 +5,7 @@ SEARCH_RESULT_ATTRS = """
>
{{ name|bettertitle }}:
{% with url=value.get_absolute_url %}
{% if url %}<a href="url">{% endif %}
{% if url %}<a href="{{ url }}">{% endif %}
{% if value|length > 40 %}
{{ value|truncatechars:"40" }}
{% else %}