Is anyone using the Reboot skin (4.7.9) having trouble with canonical link tags? An SEO tool we use reported that:
"Canonical Tag
Importance
Easy to Solve
Webpage and canonical link tag points to different URLs.
Website url:
https://www.company.com/Widgets-and-things/
Url found in the canonical link tag:
https://www.company.com/https://www.company.com/Widgets-and-things/
"
It looks like it is duplicating the main url before the complete page url somehow.
Reading this thread from 2015 Phil said to replace some code in
/reboot/custom/reboot_service_head.tpl
The relevant code in our reboot_service_head.tpl file is currently:
{if $homepage}
<link rel="canonical" href="{$current_location}" />
<link rel="prerender prefetch" href="{$current_location}">
{elseif $main eq "reboot_blog"}
<link rel="canonical" href="http://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_ URI}" />
<link rel="prerender prefetch" href="http://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_ URI}" />
{else}
<link rel="canonical" href="{$current_location}/{$canonical_url}" />
<link rel="prerender prefetch" href="{$current_location}/{$canonical_url}" />
{/if}
Any ideas how to fix this with my limited X-Cart knowledge?