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
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>