Site logo

[Resolved] Pagination – page 2 returns a 404 (incorrectly)

Home Forums Support [Resolved] Pagination – page 2 returns a 404 (incorrectly)

Home Forums Support Pagination – page 2 returns a 404 (incorrectly)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2459854
    Tom

    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.

    #2459870
    Tom

    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.

    #2459894
    Fernando
    Customer Support

    Hi Tom,

    I see. Glad you resolved it!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.