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

@ -1,3 +1,11 @@
# NetBox v3.7
## v3.7-beta2 (FUTURE)
### Bug Fixes
* [#14432](https://github.com/netbox-community/netbox/issues/14432) - Fix hyperlinks for global search result attributes
## v3.7-beta1 (2023-12-05) ## v3.7-beta1 (2023-12-05)
### Breaking Changes ### Breaking Changes

View File

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