Cơ sở kiến thức
Extra Tools
Working with “rel-canonical” link tags in PageImprove

Working with “rel-canonical” link tags in PageImprove

The tags <link rel="canonical" />  are useful for consolidating duplicate URLs. However, there are some important details to keep in mind regarding how these tags should be added using JavaScript. As Google Search Central says, it is possible to inject rel=“canonical” link tags with JavaScript. However, changing existing rel=“canonical” link value may lead to unexpected results.

Therefore we also recommend setting rel=“canonical” URLs with PageImprove only in cases where rel=“canonical” tags are not already present in the original HTML.You may find more details in this article on Google Search Central.