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
    7 Feb 08:16am

    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
    21 Nov, 2023 01:51pm

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

  • Serkan Yalcinkaya commented
    13 Nov, 2023 07:46pm

    Any news on this case?

  • Veronica Delfino commented
    11 Jul, 2023 07:04pm

    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
    31 May, 2023 03:00pm

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