Browse Source

Fixes #7248: Fix global search results section links

jeremystretch 4 years ago
parent
commit
ab0a2abc54
2 changed files with 2 additions and 1 deletions
  1. 1 0
      docs/release-notes/version-3.0.md
  2. 1 1
      netbox/templates/search.html

+ 1 - 0
docs/release-notes/version-3.0.md

@@ -6,6 +6,7 @@
 
 * [#7167](https://github.com/netbox-community/netbox/issues/7167) - Ensure consistent font size when using monospace formatting
 * [#7226](https://github.com/netbox-community/netbox/issues/7226) - Exempt GraphQL API requests from CSRF inspection
+* [#7248](https://github.com/netbox-community/netbox/issues/7248) - Fix global search results section links
 
 ---
 

+ 1 - 1
netbox/templates/search.html

@@ -12,7 +12,7 @@
                 <div class="col col-md-9">
                     {% for obj_type in results %}
                         <div class="card">
-                            <h5 class="card-header">{{ obj_type.name|bettertitle }}</h5>
+                            <h5 class="card-header" id="{{ obj_type.name|lower }}">{{ obj_type.name|bettertitle }}</h5>
                             <div class="card-body table-responsive">
                                 {% render_table obj_type.table 'inc/table.html' %}
                             </div>