Title: Canonical link errors
Last modified: April 4, 2022

---

# Canonical link errors

 *  Resolved [akubrin](https://wordpress.org/support/users/akubrin/)
 * (@akubrin)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/canonical-link-errors/)
 * Semrush is reporting broken canonical links on three of my AMP pages, including
   this one.
 * I understand what a broken canonical link is, but how do I fix it? I don’t see
   a way in the AMP plugin.
 * I just checked the HTML, and the canonical link loads correctly.
 * I’m using the ?amp URL structure, if that’s a factor.
 * Can anyone help?
 * Thanks.
 * AK
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcanonical-link-errors%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [Fellyph Cintra](https://wordpress.org/support/users/fellyph/)
 * (@fellyph)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/canonical-link-errors/#post-15527944)
 * Hi [@akubrin](https://wordpress.org/support/users/akubrin/),
 * Thanks for contacting us; I have checked your website. The canonical link points
   to the same version; it should be AMP to non-AMP and verse-and-versa. The AMP
   plugin will let the SEO plugin manage the canonical link if some action is applied
   by it.
 * In your case, you are using the Yoast SEO plugin, so you should check how the
   Yoast plugin is mounting the canonical link. I would check with Yoast support
   about it.
 * If you need further investigation, could you share your UUID?
 *  Thread Starter [akubrin](https://wordpress.org/support/users/akubrin/)
 * (@akubrin)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/canonical-link-errors/#post-15529535)
 * Hi [@fellyph](https://wordpress.org/support/users/fellyph/),
    I’m puzzled by 
   this report. When I view the source code for those AMP pages, I find working 
   canonical links pointing to the original, non-AMP versions of the pages. In other
   words, these errors appear to be false. It’s also strange that only three pages
   would have these errors, since the Yoast plugin uses the same setting to create
   canonical links for all the AMP pages on my site. I just wrote to the Semrush
   support team to request some clarification. I’ll also check the Yoast SEO support
   forum and file a post there if necessary. If all else fails, I’ll get back to
   you with the UUID and other appropriate info. Thanks for getting back to me. 
   AK
 *  [Fellyph Cintra](https://wordpress.org/support/users/fellyph/)
 * (@fellyph)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/canonical-link-errors/#post-15529676)
 * Hi [@akubrin](https://wordpress.org/support/users/akubrin/),
 * I have tested this URL, for example:
 * [https://cycle7comms.com/nonprofit-marketing-communication-2/](https://cycle7comms.com/nonprofit-marketing-communication-2/)
 * The non-AMP version is pointing to the non-AMP version when it should be the 
   AMP version url(this case it will trigger an error)
    ⌊non-amp version⌉
 * But [AMP version](https://cycle7comms.com/nonprofit-marketing-communication-2/?amp=1)
   is fine
    ⌊amp version⌉
 *  Thread Starter [akubrin](https://wordpress.org/support/users/akubrin/)
 * (@akubrin)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/canonical-link-errors/#post-15529706)
 * Hi [@fellyph](https://wordpress.org/support/users/fellyph/),
    Now I’m beginning
   to understand. If I understand you correctly, you’re saying that to avoid these
   errors, the following two conditions must both be true:
    - All AMP pages have canonical links to non-AMP pages.
    - All non-AMP pages have canonical links to AMP pages.
 * Is this understanding correct?
    If it is, perhaps the Yoast support forum can
   help me find the correct setting. I have looked in the Yoast interface for an
   appropriate setting; I didn’t find one, but perhaps I overlooked something. Thanks
   again. AK
 *  [Lucas](https://wordpress.org/support/users/culturalistpress/)
 * (@culturalistpress)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/canonical-link-errors/#post-15538525)
 * For what it is worth I discovered this is also true in AHREFs – it reports a 
   non-matching canonical but when checked everything behaves correctly. I don’t
   think this is an issue.
 *  Thread Starter [akubrin](https://wordpress.org/support/users/akubrin/)
 * (@akubrin)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/canonical-link-errors/#post-15538551)
 * [@fellyph](https://wordpress.org/support/users/fellyph/), [@culturalistpress](https://wordpress.org/support/users/culturalistpress/),
   
   Something is happening, but I’m not sure what. Just today, I got a report from
   Google Search Console. It says that for two URLs, the AMP versions have invalid
   structured data:
    - [https://cycle7comms.com/blog/?amp](https://cycle7comms.com/blog/?amp)
    - [https://cycle7comms.com/nonprofit-marketing-communication-2/?amp](https://cycle7comms.com/nonprofit-marketing-communication-2/?amp)
 * But the canonical links seem to be correct. In both cases, the AMP version is
   pointing to the non-AMP version, and vice versa.
    What do you think?
 *  [Fellyph Cintra](https://wordpress.org/support/users/fellyph/)
 * (@fellyph)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/canonical-link-errors/#post-15539322)
 * Hi @akubri,
 * I have tested your pages, two links [the first one is fine](https://search.google.com/test/rich-results/result?id=RNNDP6G5KtCFoDen3fYEQQ)
   and the [second one](https://search.google.com/test/rich-results/result/r%2Famp-articles?id=VVvNTYfL3xaur-elVR2M1w)
   has an issue with a missing image.
 * AMP plugins only generate the structure data if there is no SEO plugin installed;
   if you have Rank Math or Yoast, they will be responsible for managing it. In 
   case of a missing image, it usually is taken from the feature image; try to add
   a featured image and test the page again.
 *  Thread Starter [akubrin](https://wordpress.org/support/users/akubrin/)
 * (@akubrin)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/canonical-link-errors/#post-15573013)
 * Hi [@fellyph](https://wordpress.org/support/users/fellyph/),
 * What it came down to, then, was setting a featured image for the original page.
   I did that, then tested both the AMP and the non-AMP versions. Both passed the
   test.
 * Thanks for your help.
 * [@akubrin](https://wordpress.org/support/users/akubrin/)

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Canonical link errors’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [akubrin](https://wordpress.org/support/users/akubrin/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/canonical-link-errors/#post-15573013)
 * Status: resolved