Nic1
(Nic Warrington)
May 8, 2019, 7:11am
1
Hi All,
Can anyone with experience in canonical tags shed some light on this scenario as I can’t find an exact example online or the forum:
My blog is setup on the Blog Categories Template CMS page. The full unfiltered blog is https://brahmanhills.webflow.io/blog/all-categories . Other blog categories sit on https://brahmanhills.webflow.io/blog/weddings etc.
Should the canonical tag be:
<link rel="canonical" href="https://www.brahmanhills.co.za/blog/SLUG" />
or should it be:
<link rel="canonical" href="https://www.brahmanhills.co.za/blog/all-categories" />
Share: https://preview.webflow.com/preview/brahmanhills?utm_source=brahmanhills&preview=132715ef5186f6f466b1aef2ec4b15c7
Live: https://brahmanhills.webflow.io/blog/all-categories
Category
Like this (The slug
is webflow build-in field):
Put this code under “category” cms page (Inside <head>
tag).
Post
<link rel="canonical" href="https://www.brahmanhills.co.za/blog-post/{{slug}}" />
General case
In general this is the “structure”:
<link rel="canonical" href="{{base-url}}/{{collection-url}}/{{slug}}" />
** In the future if you change collection-url
-and/or- base-url
- remember also to change manually the canonical.
Nic1
(Nic Warrington)
May 8, 2019, 8:35am
3
Thanks @Siton_Systems , this is what I’ve done. I just wanted confirmation that the canonical tag for the “category” cms page should include the SLUG and not just be a straight URL for the all categories. Appreciate your time!
1 Like