From 5d2f499ffb6a9d4429e183568381fdfa2bf01370 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 7 Dec 2023 09:52:40 -0500 Subject: [PATCH] Fixes #14432: Fix hyperlinks for global search result attributes --- docs/release-notes/version-3.7.md | 8 ++++++++ netbox/netbox/tables/template_code.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/release-notes/version-3.7.md b/docs/release-notes/version-3.7.md index 7eeedb723..c8d54cdae 100644 --- a/docs/release-notes/version-3.7.md +++ b/docs/release-notes/version-3.7.md @@ -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) ### Breaking Changes diff --git a/netbox/netbox/tables/template_code.py b/netbox/netbox/tables/template_code.py index 24439eeb6..60bfda0c9 100644 --- a/netbox/netbox/tables/template_code.py +++ b/netbox/netbox/tables/template_code.py @@ -5,7 +5,7 @@ SEARCH_RESULT_ATTRS = """ > {{ name|bettertitle }}: {% with url=value.get_absolute_url %} - {% if url %}{% endif %} + {% if url %}{% endif %} {% if value|length > 40 %} {{ value|truncatechars:"40" }} {% else %}