Wrong rel=”next” link tag
-
Rank math seems to add a link tag
<link rel="next" href=".../page/2/" />
(dots correspond to the site domain) to the front page head section but in some scenarios it is wrong and can lead to a 404 response or a duplicate page.I’ve noticed (so far) two scenarios:
- The site is using a FSE compatible theme and the front or archive page is using a (main) query loop block that is set to NOT inherit the models default query. In this case the link path should be something like
/?query-X-page=2
because the/page/2/
will just show a duplicate of the first page. - When Polylang is used and set to include the language string in request the path. In this case, the RankMath tag should look like
/fr/page/2/
because the/page/2/
leads to a 404 response.
Both sound bad for SEO to me… Please advise or fix ??
The page I need help with: [log in to see the link]
- The site is using a FSE compatible theme and the front or archive page is using a (main) query loop block that is set to NOT inherit the models default query. In this case the link path should be something like
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Wrong rel=”next” link tag’ is closed to new replies.