Well this is odd! Has anyone else come aross this?
I use thise bit of code for canonical tags
In Filtered pages, it breaks to layout by stopping the page recognising the stylesheets. Howver it still reognises the stylesheets for google fonts and share this.
Same with this
However if I wrap the code in this blockif
The page displays correctly AND the canonical link displays! BUT the canonical link does not display in pages clicked through to from the Best sellers list.
It is on a client site just now, I will add it to my test site and post the URL soon.
Is it something to do with base href ? - Baffled!
Can anyone shed any light?
Thanks
I use thise bit of code for canonical tags
Code:
<!-- Canonical Tags --> <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Brochure%27" > <actinic:block if="%3cactinic%3avariable%20name%3d%22IsBrochureHomePage%22%20%2f%3e" > <link rel="canonical" href="<actinic:variable name="WebSiteURL" />" /> </actinic:block> </actinic:block> <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Brochure%27" > <actinic:block if="%3cactinic%3avariable%20name%3d%22IsBrochureHomePage%22%20%2f%3e%20%3d%3d%20false"> <link rel="canonical" href="<actinic:variable name="CatalogURL" /><actinic:variable name="BrochurePageURL" />" /> </actinic:block> </actinic:block> <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Section%22" > <link rel="canonical" href="<actinic:variable name="CatalogURL" /><actinic:variable name="SectionPageName" />" /> </actinic:block>
Same with this
Code:
<script type="text/javascript"> document.write ('<link rel="canonical" href="'+window.location+'" />'); </script>
Code:
<actinic:variable name="IsFilteringEnabled" /> == false
It is on a client site just now, I will add it to my test site and post the URL soon.
Is it something to do with base href ? - Baffled!
Can anyone shed any light?
Thanks
Comment