Developer forum

Forum » Development » Remove canonical-tag by api

Remove canonical-tag by api

Kurt Moskjær Andersen
Kurt Moskjær Andersen
Reply

Hi,

Is it possible to remove the canonical-tag inserted by DW into the documents header, by api?

My customer would like the canonical-tag to be totally removed on the search-page.

We're using DW 9.7.2

--

Best regards
Kurt Moskjaer Andersen 


Replies

 
Kurt Moskjær Andersen
Kurt Moskjær Andersen
Reply

Anyone?

 
Nicolai Pedersen
Reply
This post has been marked as an answer

In page.loaded notifcation subscriber, try to call

Pageview.Meta.AddTag("customCan", string.empty);

Votes for this answer: 1
 
Kurt Moskjær Andersen
Kurt Moskjær Andersen
Reply

Well, tried that, but it doesn't remove the default canonical tag, set on the page.

Maybe it's not possible to remove it?

/Kurt

 
Nicolai Pedersen
Reply
This post has been marked as an answer

If that does not work, I have no other ideas...

Votes for this answer: 1
 
Kurt Moskjær Andersen
Kurt Moskjær Andersen
Reply

Okay, thanks :)

/Kurt

 

You must be logged in to post in the forum