Skip to main content
deleted 21 characters in body
Source Link
7ochem
  • 7.6k
  • 14
  • 52
  • 80

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>

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 added to the end.

The only reason I can think that this works is that the removeItem 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>

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 added to the end.

The only reason I can think that this works is that the removeItem 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>
Source Link
Jack
  • 81
  • 1
  • 2

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 added to the end.

The only reason I can think that this works is that the removeItem 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>