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

Include page:1 in filterLink queryParams #88

Merged
merged 2 commits into from
Mar 20, 2023
Merged

Conversation

jeffdaley
Copy link
Contributor

@jeffdaley jeffdaley commented Mar 10, 2023

Includes page: 1 in filterLink queryParams so that toggling filters effectively creates a new search.

In general, I think this is the expected behavior, but it's worth calling out that it resolves a particularly frustrating use case: Say you're on page 5 of results and you filter by owner. And say the owner has only enough matches for 1 page. Currently by keeping users on page 5, they see a no-data screen and have to manually click page 1. WELL NO MAS, BABY.

@jeffdaley jeffdaley requested a review from a team as a code owner March 10, 2023 19:10
Copy link
Contributor

@jfreda jfreda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense!

@jeffdaley jeffdaley merged commit 37ca6c9 into main Mar 20, 2023
@jeffdaley jeffdaley deleted the jeffdaley/facet-pagination branch March 20, 2023 13:39
anuragprafulla pushed a commit to razorpay/hermes that referenced this pull request Jun 27, 2023
* Ensure editing filters resets page number

* Add page1 function to ClearAll
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.

None yet

2 participants