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

pager.html: stay on the same page #2223

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

some-perl-nerd
Copy link

On a result with 10 per page, the second page starts at 10
On a result with 100 per page, the second page starts at 100

As long as you landed on the page from a search result the link shouldn't take you past the end of the results.

Completely untested fix for #2218

On a result with 10 per page, the second page starts at 10
On a result with 100 per page, the second page starts at 100

As long as you landed on the page from a search result the link shouldn't take you past the end of the results.
@oalders
Copy link
Member

oalders commented Oct 28, 2019

Thanks for this. I wonder why we don't just use a pagination module here?

@some-perl-nerd
Copy link
Author

some-perl-nerd commented Oct 28, 2019

The pagination plugin doesn't have support for changing page size.

Edit: while looking at this area, it might be nice to spend some time pondering on #1686

@oalders
Copy link
Member

oalders commented Oct 28, 2019

I'm ok with not using a plugin if it makes things easier.

@mohawk2
Copy link
Contributor

mohawk2 commented Jul 3, 2020

#1476 is related too.

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.

3 participants