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

Providing the value of the pagination button clicked to linkProps #62

Open
cschratz opened this issue Aug 17, 2022 · 1 comment
Open
Labels
good first issue Good for newcomers

Comments

@cschratz
Copy link

I'm currently setting up a blog and utilizing the next-pagination component.

I'm providing a new route to the component via linkProps, but I would like to add the value of the page being clicked on to the route

For example

Screen Shot 2022-08-17 at 4 34 45 PM

So after the /page/, I would like to be able to provide the value of 2 if a user clicked on the 2 in the component so the new route would be /page/2/.

Is this currently possible?

@gavmck
Copy link
Member

gavmck commented Aug 18, 2022

I think it only works with query strings rather than route params at the moment. PRs welcome!

@JoshTheWanderer JoshTheWanderer added the good first issue Good for newcomers label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Development

No branches or pull requests

3 participants