Canonical changed by JavaScript

MediumMedium priority, in Canonicals

Short answer

Canonical changed by JavaScript means: the raw canonical and the one after JavaScript differ (or one is missing). Google may follow either, so the wrong page can be picked. To fix it: output one canonical in the server HTML and don't change it with JavaScript.

By the SmooxSEO team. Updated on 16 November 2026.

What it means and why it matters

The raw canonical and the one after JavaScript differ (or one is missing). Google may follow either, so the wrong page can be picked.

How to fix it

Output one canonical in the server HTML and don't change it with JavaScript.

How serious is it?

The page still ranks, but less well, or a real opportunity is lost. Fix it when you can.

About canonicals checks

The canonical tag tells search engines which address is the main version of a page when the same content exists at several addresses.

Find this problem on your site

SmooxSEO checks every page of your site for this problem and 311 others, lists the pages concerned, and tells you what to fix first.

Related canonicals checks

All canonicals checksAll 312 checks