May I know if there's a way to remove canonical tag on a specific page in AEM?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @hello299 you can alway use : Page Properties Dialog and if you want to remove programmatically you can use
JCR API: you can programmatically remove the cq:canonical property from the page node.
or Sling API: you can programmatically remove the cq:canonical property from the page node.
How did you add this in your page properties. Cannot find at my end
These properties are available OOB with AEM 6.5 instance. May I know what's the AEM instance version are you using?
AEM 6.5
Hi @hello299
First thing is to identify how they are being added to the page. If it is at the head, you need to write some js code to identify the pages that you need and remove the tags in dom.
Hope this helps!
Thanks,
Kiran Vedantam.
Hi @hello299 you can alway use : Page Properties Dialog and if you want to remove programmatically you can use
JCR API: you can programmatically remove the cq:canonical property from the page node.
or Sling API: you can programmatically remove the cq:canonical property from the page node.
Views
Likes
Replies