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

Pagination with posts block not working on home (landing) page #2489

Open
vidarsko opened this issue Jan 9, 2025 · 0 comments
Open

Pagination with posts block not working on home (landing) page #2489

vidarsko opened this issue Jan 9, 2025 · 0 comments
Assignees
Labels
bug This label could be used to identify issues that are caused by a defect in the product.

Comments

@vidarsko
Copy link

vidarsko commented Jan 9, 2025

Description

The pagination feature looks okay, but when you press either a number or "next", the navigation breaks. Also, it seems that the number of pages is not correct, see screen shots.

This only happens on the front page as far as I can see, when i include the feature on a site, it looks okay.

Step-by-step reproduction instructions

  1. Make 9 posts
  2. Add posts block onto landing page, enable pagination
  3. Check the frontend

Screenshots, screen recording, code snippet or Help Scout ticket

Landing page before clicking. Shows 1 to 4 even though there should really only be 1 to 3:

Image

After pressing Next ("Neste" in Norwegian). Directed to homepage.url/page/2 as expected. Next posts display correctly, but navigation broken:

Image

Pressing 4. Directs me to homepage.url/page/4, but posts are wrong (I dont even know what they should be).

Image

Pressing 1. Brings me to homepage.url/page/1. Posts are wrong.

Image

Manually going to homepage.url/page/3. Posts should be Test3, Test2 and Test1, but no:

Image

Environment info

https://pastebin.com/Tin60bc2

Is the issue you are reporting a regression

No

@vidarsko vidarsko added the bug This label could be used to identify issues that are caused by a defect in the product. label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This label could be used to identify issues that are caused by a defect in the product.
Projects
None yet
Development

No branches or pull requests

2 participants