Site logo

Archived topic

Pagination - page 2 returns a 404 (incorrectly)

2 replies · Started by Tom on December 12, 2022

Viewing posts 1–3 of 3

I'm using Generatepress premium, latest update.

I have 'Blog pages show at most' set to 100 in settings-reading.

Infinite scroll is NOT selected in blog settings in the customizer.

There are 109 reviews in the review category. The first 100 load correctly on the category page. However, when a user presses "page 2" at the end of the category page, a 404 is returned. This is also replicated when testing on the back end, so it's not a caching issue.

There's a link to the category page in question in the private information below.

Please advise. Thanks.

Resolved.
It turned out to be the YOAST SEO plugin which was prettifying the category urls, so that instead of /category/whatever/, internal links were being outputted as /whatever/ .

The GP pagination works on /category/whatever/ but when the URL is simply /whatever/ (ie redirected), the pagination does not work since there's no /whatever/page/2/, there's only a /category/whatever/page/2/ - hence the 404.

Hi Tom,

I see. Glad you resolved it!

This archived topic is closed to new replies.