I want to remove the canonical link from a html page (Site Map).
<link rel="canonical" href="https://www.example.com/seositemap">
I used the following code in a layout and it does not work
<?xml version="1.0"?>
<layout version="0.1.0">
<seositemap_index_index>
<reference name="content">
<block type="seositemap/map" name="map" template="seositemap/map.phtml"/>
</reference>
<reference name="head">
<action method="removeItem"><type>link_rel</type><rel>canonical</rel></action>
</reference>
</seositemap_index_index>
</layout>
Any idea ?
here is how the method looks like
there is no rel parameter. You should use "name" instead. And its content has to be the href of current link