CreareSEO
CreareSEO copied to clipboard
mydomain.com becomes mydomain.com/home
After updating to latest version of CreareSEO to 1.5 we noticed an issue on our homepage.
<!-- CMS page canonical link tag added by CreareSEO -->
<link rel="canonical" href="http://mydomain.com" /></head>
<body class=" cms-index-index retina-ready floating-header hover-effect hover
became
<!-- CMS page canonical link tag added by CreareSEO -->
<link rel="canonical" href="http://mydomain.com/home/" /></head>
<body class=" cms-index-index retina-ready floating-header hover-effect hover
Is this the expected behaviour or am I missing something here?
Thanks in advance for your reply, Elmi
Adding the following to line 8 of the following file app/code/community/Creare/CreareSeoCore/Block/Page/Html/Head/Cmscanonical.php solves the issue. Maybe you cann add it to the next release.
if($cmsPagePath == 'home'){$cmsPagePath ='';}
👍