View Single Post
  #1374  
Old 03-26-2019, 08:55 AM
 
1994Z28 1994Z28 is offline
 

Member
  
Join Date: Feb 2018
Posts: 14
 

Default Re: X-Cart - reBOOT - Responsive Template

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?
__________________
X-Cart Gold Plus 4.7.9
w X-Affiliate, X-Configurator, X-AOM, X-SpecialOffers, BCSE Global Product Options, BCSE Product Packaging, Reboot responsive template
Reply With Quote