I have been trying to figure this out for quite a while now and none of the solutions I found worked. All I had to do to get it to work was to add another removeItem action with the same link but with ?___SID=U?___SID=U
added to the end.
The only reason I can think that this works is that the removeItemremoveItem
action is looking for the URL before the URL rewrite kicks in. Don't quote me on that though :)
<reference name="head">
<action method="removeItem"><type>link_rel</type><href>{LINK}</href></action>
<action method="removeItem"><type>link_rel</type><href>{LINK}?___SID=U</href></action>
<action method="addLinkRel"><rel>canonical</rel><href>{LINK}</href></action>
</reference>