Skip to content
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

When starting a new search, set start=0. #4394

Merged
merged 3 commits into from
Sep 26, 2024

Conversation

jrobbins
Copy link
Collaborator

This should resolve #4217. When the user starts a new search, the start parameter should be set to 0. Before this PR, if the paged to a higher start and then did a search that generated a small number of results, it would say no results.

Also, we now show a distinct message if there are some search results, but the start= URL parameter was set to a higher value such that there are no results on that pagination page. E.g., before this PR, ?q=css&start=9999 would say no results. Now it says no results on this pagination page.

Also, add a little padding around the messages so that they are not too close to the search box.

@jrobbins jrobbins merged commit 74cb10c into main Sep 26, 2024
7 checks passed
@jrobbins jrobbins deleted the 20240925-reset-start-on-new-search branch September 26, 2024 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pagination start does not reset to 0 when the user does a new search
2 participants