SEO friendly pagination (correct canonical URL)

Currently, pagination in Webflow is not reflected in the canonical URL.

This goes directly against Google's guidelines and can be a major issue for SEO-friendly indexing of elements (yes, CMS pages are included in the Sitemap, but they will still be marked as orphan pages)

All this means that for proper canonicals on paginated pages to be made you a required to use a script like this:

<script>
const urlPath = window.location.href
if (urlPath.includes('_page=')) {
const canonicalLink = document.querySelector("link[rel='canonical']");
if (canonicalLink) {
canonicalLink.href = urlPath
} else {
const link = document.createElement("link");
link.setAttribute("rel", "canonical");
link.setAttribute("href", urlPath);
document.head.appendChild(link);
}
}
</script>


It would be great if this could be fixed (or at least just give us the option to provide unique canonicals for the paginated pages)

  • Bonzer
  • May 11 2023
CMS
  • Per-Erik Ingjer commented
    07 Feb 08:16

    I am also having this issue. https://www.example.com/help?5bdfdbdb_page=2 gives this as canonical value. I thought the whole idea for the canonical field in settings was to remove this type of string?

  • Margaux Marshall commented
    November 21, 2023 13:51

    This is really impacting the crawlability of the site and indexing of blog posts.

  • Serkan Yalcinkaya commented
    November 13, 2023 19:46

    Any news on this case?

  • Veronica Delfino commented
    July 11, 2023 19:04

    I am having this issue too...but the script above does not stop the canonicalization, I am using Finsweet CMS filtering and loading attributes, so not sure if that has something to do with the above script not working

  • Ross Newton commented
    May 31, 2023 15:00

    We have this issue. The pagination doesn't get indexed by Google and thus causes hundreds of pages to be orphans.