CreareSEO icon indicating copy to clipboard operation
CreareSEO copied to clipboard

mydomain.com becomes mydomain.com/home

Open elmitzk opened this issue 8 years ago • 2 comments

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

elmitzk avatar Dec 22 '16 13:12 elmitzk

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 ='';}

elmitzk avatar Jan 04 '17 07:01 elmitzk

👍

paul-hph avatar Jan 07 '17 20:01 paul-hph