-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
UI: Reset page query param on search #4822
Conversation
Searchable can be used without pagination, but reseting pagination is more a function of search than pagination insofar as if you add search to a page, you are also going to want automatic pagination resetting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Hey, I was just trying this out with a Refinement suggestion more than anything. Thanks |
IMO it should always go back to page one. Since the search results are sorted by relevancy, refining the search and not being one page one means you aren't seeing the most relevant results. |
I just double checked what various sites do (google, duckduckgo, gmail, github) and they all reset pagination. |
Cool, good point, thanks for looking into it! |
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
Fixes a search + pagination bug.
Current behavior
New behavior