Site logo

Archived topic

Pagination Sequence Error (Query loop)

1 reply · Started by Israel on March 24, 2023

Viewing posts 1–2 of 2

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.

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 :)

This archived topic is closed to new replies.