calguy1000 wrote:Note: for SEO purposes, you should ensure that that the articles in each category ALWAYS link to the same appropriate detail page. So that the canonical URL is always consistent.
Since i am forced to not use the slugs for detail templates, i have to get the canonical url correct. (As stated by the guru's above.)Rolf wrote:https://www.cmscanbesimple.org/blog/bas ... d-metatags
I am seeing that i am missing a part of the url in my canonical url.
The URL is
Code: Select all
https://modh.co.za/blog/10/48/7-KEY-ASPECTS-WHEN-BUILDING-YOUR-FIRST-HOME
Code: Select all
https://modh.co.za/blog/10/7-key-aspects-when-building-your-first-home
Code: Select all
<link rel="canonical" href="{$canonical_url}" />
Code: Select all
{$canonical_url = $entry->canonical|lower scope=global}