I want to Update rel=canonical href using Java Script

Hi @neounix,

I have tried you code, but instead of updating the href, a new script tag got generated:
image
I have updated this script in “/head” section.