Make Search Headers link to sub-searches #1458

Closed
opened 2025-12-29 16:32:17 +01:00 by adam · 2 comments
Owner

Originally created by @awfki on GitHub (Dec 14, 2017).

Issue type

[ X] Feature request

Environment

  • Python version: 2.7
  • NetBox version: 2.2.4

Description

If do a search from the upper-right search box I get a page that includes results from various object types (Device, Prefix, etc). It would be very handy if there were links from there to the same search on specific types. So for instance, I do the global search for "dhcp" and get a page like this URL https://netbox/ipam/prefixes/?q=dhcp.

The Devices header would be a link to https://netbox.rsglab.lan/dcim/devices/?q=dhcp.
The Prefixes header would be a link to https://netbox.rsglab.lan/ipam/prefixes/?q=dhcp.
et cetera

Alternately, there's a "Search Results" box on the right side of the results page where these links could be put instead of the current links that go to the sections on the same page.

Originally created by @awfki on GitHub (Dec 14, 2017). <!-- Before opening a new issue, please search through the existing issues to see if your topic has already been addressed. Note that you may need to remove the "is:open" filter from the search bar to include closed issues. Check the appropriate type for your issue below by placing an x between the brackets. For assistance with installation issues, or for any other issues other than those listed below, please raise your topic for discussion on our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please note that issues which do not fall under any of the below categories will be closed. Due to an excessive backlog of feature requests, we are not currently accepting any proposals which extend NetBox's feature scope. Do not prepend any sort of tag to your issue's title. An administrator will review your issue and assign labels as appropriate. ---> ### Issue type [ X] Feature request <!-- An enhancement of existing functionality --> <!-- Please describe the environment in which you are running NetBox. (Be sure to verify that you are running the latest stable release of NetBox before submitting a bug report.) If you are submitting a bug report and have made any changes to the code base, please first validate that your bug can be recreated while running an official release. --> ### Environment * Python version: 2.7 * NetBox version: 2.2.4 <!-- FEATURE REQUESTS must include: * A detailed description of the proposed functionality * A use case for the new feature * A rough description of any necessary changes to the database schema * Any relevant third-party libraries which would be needed --> ### Description If do a search from the upper-right search box I get a page that includes results from various object types (Device, Prefix, etc). It would be very handy if there were links from there to the same search on specific types. So for instance, I do the global search for "dhcp" and get a page like this URL https://netbox/ipam/prefixes/?q=dhcp. The Devices header would be a link to https://netbox.rsglab.lan/dcim/devices/?q=dhcp. The Prefixes header would be a link to https://netbox.rsglab.lan/ipam/prefixes/?q=dhcp. et cetera Alternately, there's a "Search Results" box on the right side of the results page where these links could be put instead of the current links that go to the sections on the same page.
adam added the type: feature label 2025-12-29 16:32:17 +01:00
adam closed this issue 2025-12-29 16:32:17 +01:00
Author
Owner

@jeremystretch commented on GitHub (Dec 14, 2017):

A button labeled "See all n results" is added beneath each table if more results exist for that type of object. Otherwise, the displayed table already contains all relevant results. Adding a link to the same thing would be redundant.

@jeremystretch commented on GitHub (Dec 14, 2017): A button labeled "See all _n_ results" is added beneath each table if more results exist for that type of object. Otherwise, the displayed table already contains all relevant results. Adding a link to the same thing would be redundant.
Author
Owner

@awfki commented on GitHub (Dec 14, 2017):

For search results it's redundant but the functionality isn't the same on the global search page as on the type specific pages.

For example once I've found the devices I'm looking for via the global search I want jump to the Devices search so that I can select them (or a subset) and then do things with them.

Right now I'll global search, realize I can't do what I want (unless it's just to find a single thing) and then repeat the search on type page.

Obviously not a priority but it seems like it would be a simple change and it would smooth my workflow and I assume I'm not the only one with this issue.

@awfki commented on GitHub (Dec 14, 2017): For search results it's redundant but the functionality isn't the same on the global search page as on the type specific pages. For example once I've found the devices I'm looking for via the global search I want jump to the Devices search so that I can select them (or a subset) and then do things with them. Right now I'll global search, realize I can't do what I want (unless it's just to find a single thing) and then repeat the search on type page. Obviously not a priority but it seems like it would be a simple change and it would smooth my workflow and I assume I'm not the only one with this issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1458