Whats the best way to add a canonical tag to the login page? Would I be best to add something to the head via the layout.xml
1 Answer
Hi you can do this by using method of addLinkRel()
which is the function of head class Mage_Page_Block_Html_Head
that means it reference of head
Please try this.
<customer_account_login>
<reference name="head">
<action method="addLinkRel"><rel>canonical</rel><href>/customer/account/login</href></action>
</reference>
</customer_account_login>
See at
-
How would you set the base url as canonical tags should be absolute paths and not relative eg Use this structure: example.com//customer/account/login Not this structure: /customer/account/login– Goose84Apr 21, 2015 at 10:20