Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Conversation

@whitdog47
Copy link
Contributor

@whitdog47 whitdog47 commented Jul 28, 2023

This PR adds the global search query to the URL, providing a way to copy & paste the search query, and allowing direct access to search results via URL. For instance, https://dispatch.com/org/search/results?q=281 will show the search results for the query "281".

@whitdog47 whitdog47 added the enhancement New feature or request label Jul 28, 2023
@whitdog47 whitdog47 requested a review from wssheldon July 28, 2023 22:08
@kevgliss kevgliss self-requested a review July 28, 2023 22:08
@kevgliss
Copy link
Contributor

Thoughts on using a query param here? When I think of a search query I typically think of something like /search?q=foo mostly because I'd expect the result to be dynamic. Where as if it's directly in the URL id expect the results to be the same every time.

@whitdog47
Copy link
Contributor Author

Thanks for the suggestion, @kevgliss. I changed to a query parameter and improved further by updating the URL bar and search results when user types in the inputbox.

@whitdog47 whitdog47 merged commit ee021f1 into master Jul 31, 2023
@whitdog47 whitdog47 deleted the enhancement/search-via-url branch July 31, 2023 19:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants