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

Question: default to last page when requested page is out of range (upper bound)? #134

Open
interDist opened this issue Jul 19, 2019 · 3 comments

Comments

@interDist
Copy link

There might be a straight-forward way to accomplish what I specified in the title, but I haven't figured it out. To be specific, if there are only 3 pages and the user requests page 10, I would like the application to show the last available page.

What would be the possible solution?

  • in the regular pagination ({% paginate %})
  • in the lazy pagination ({% lazy_paginate %}), when number of pages is not known upfront
@shtalinberg
Copy link
Owner

if there are only 3 pages and the user requests page 10 should be 404 page for right SEO

@interDist
Copy link
Author

@shtalinberg , I am not interested in SEO in this case, but in increasing user friendliness. The paginated pages are not visible to search engines anyway.

@shtalinberg
Copy link
Owner

You can make pull request with own functionality and use Settings (add new) with default Off
https://github.com/shtalinberg/django-el-pagination/blob/develop/doc/customization.rst

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

No branches or pull requests

2 participants