-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stable search query URLs #105
Comments
I think I see the issue here. Let me know if this set of steps to reproduce checks out with your experience:
This isn't too much of an issue to fix, but whether we fix it depends on how big of an issue it seems. We could push a new query parameter to the browser history each time the search query runs and new results are displayed, but since this happens on key up and might happen many times even as you type in a single new search query, you might end up with a large number of browser history entries to page back through. Alternatively, we could debounce the browser history push with a larger timeout than the input debounce to reduce the number of browser history entries that get pushed. Let me know if this makes sense and if you would like me to proceed with some kind of fix @garrettdashnelson ! |
@alexandergknoll yes that does reproduce the problem -- I hadn't even noticed the search from homepage/initial search distinction, but when I search "clinton maps" direct from the home page it does produce the correct URL! Differ to @garrettdashnelson on fixing this, but in general I'd love to see us put some energy into the search function (esp building out an advanced search function) now that 1.0 is done and live. |
Yes, I was going to note what @alexandergknoll has already said: the homepage search box does create a stable URL, which you can see in the https://www.argomaps.org/search/?q=Henry+Clinton And it's worth mentioning that you can rewrite that Subsequent search edits on the search page don't update the URL parameter, primarily to avoid junking up the browser history, again as @alexandergknoll has described above. I think there are two possible solutions for this:
|
Hey @garrettdashnelson - I totally forgot about that |
This is likely related to the bigger issues around rolling out a more powerful advanced search, but at the moment search query URLs don't appear to be stable -- I was experimenting with linking to a search of "clinton maps" within our new bio of Henry Clinton to direct users to Clinton Collection maps. While the query works as expected, the URL is https://www.argomaps.org/search/?q=clinton, which, when refreshed, reverts to the more simple query on just "Clinton" which is not helpful in this case.
Not sure how complex the solution is but wanted to bring it to everyone's attention.
The text was updated successfully, but these errors were encountered: