Create canonical tags for Webflow native pagination [Snippet] <> No-Code Supply Co.

Create canonical tags for Webflow native pagination

Create canonical tags for Webflow native pagination
// Original code source and use agreement here: https://gist.github.com/rileyrichter/b2e5b5d9fe8952372ce49fafc75dea8b
const canonical = document.querySelector('link[rel="canonical"]');
const urlParams = new URLSearchParams(window.location.search);
const paginationParam = Array.from(urlParams.entries()).find(([key]) =>
/^[a-z0-9]{8}_page$/.test(key)
);
if (paginationParam) {
const canonical = document.querySelector('link[rel="canonical"]');
canonical.href = `${canonical.href}?${paginationParam.join("=")}`;
}

Use this javascript top add canonical tags for the native Webflow pagination URLs.

Creators

Have feedback or a question related to this item? Drop us some feedback!

Curated: 
10.5.23

Similar items

Also

3.26.25

Hurry Up & Have Fun

3.24.25

Cleft Notes

3.22.25

Typography in web design course

€399
3.22.25

Modulify AI

3.22.25

Webflow Expert Course

3.22.25

Dreamr

3.22.25

Website Headlines (dotcom)

3.18.25

Plumb

3.18.25

Elevate Sphere

3.17.25

Rubus

3.14.25

brand.ai

3.14.25

Tiny Mighty Buttons

3.14.25

Mast

3.13.23

DeepFlow

3.13.25

Sections.wtf

3.13.25

Whalesync

1.8.23

Birch

3.11.25

Praxis Leandra Isler

3.10.25

Ditto

3.10.25

Frontify

3.10.25

Fleur MCP App Store

3.10.25

Jetboost

12.3.19

Fathom Analytics

12.1.22

Fondu

3.6.25

Audienceful

8.1.22
Load more

Bummer, no results

Try a different search/filter combo, or drop us some feedback if there is something missing you would love to see!

Reset filters

Subscribe for updates

Get updates on the latest curated resources and be the first to hear of new features.