• Resolved ivomartingo

    (@ivomartingo)


    Hello !

    I’m currently trying to implement AMP in one landing page of my clients website to test it out. I’m using the “Paired AMP-non-AMP” mode, and yoast as well.
    Ideally, the purpose is to load the default landing page on desktop and the AMP version in mobile when user search for it.

    I’m developing using the is_amp_endpoint() function, to differentiate between the content I want to display.

    However i noticed that in the default page there is both the amphtml and canonical link, while on the AMP version there is only the canonical link, which is correct

    Will this cause any problems? Will Google consider the way I want the pages to be displayed as I explained above?

    Thank you in advance!
    Best regards

    • This topic was modified 5 years, 7 months ago by ivomartingo.
Viewing 1 replies (of 1 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    @ivomartingo it is expected that the non-AMP page would have both the amphtml link that points to the ?amp version and the canonical link which is essentially the same as the URL you’re on. And then when looking on the AMP page, there should only be a canonical link. So that seems to all be exactly as expected.

    Compare with https://amp.dev/

    Notice there is amphtml and canonical links, but if you go to the amphtml version, there is only canonical: https://amp.dev/index.amp.html

Viewing 1 replies (of 1 total)
  • The topic ‘Amp page through ?amp endpoint’ is closed to new replies.