Site logo

[Support request] Pagination Sequence Error (Query loop)

Home Forums Support [Support request] Pagination Sequence Error (Query loop)

Home Forums Support Pagination Sequence Error (Query loop)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2580822
    Israel

    Hi,

    I have an important canonicalization issue on my site due to the way GeneratePress archive pages treat the NEXT and PREV REL links in the Query Loop block. See the description below from Screaming Frog.

    Description
    URLs that have an error in the rel=”next” and rel=”prev” HTML link elements sequence. This check ensures that URLs contained within rel=”next” and rel=”prev” HTML link elements reciprocate and confirm their relationship in the series.

    How To Fix
    Ensure paginated URLs contained within rel=”next” or rel=”prev” attributes and within tags are to the correct pages in the sequence.

    The problem is that the category pagination links link to https://domain.com/category/?query-c82e90c0-page=2 instead of https://domain.com/category/page/2/ as it should.

    I sent the real URLs in private.

    #2581139
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    The Query Loop isn’t able to use the standard /page/2 structure, as it’s reserved for the default theme loop.

    You’ll see that the core Query Loop block does the same thing.

    Since the canonical URL exists, I’m assuming this a core archive page? If so, you can use the “Inherit query” option which will then use the standard pagination structure.

    Let me know if you need more info 🙂

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