AMP · AMP status

amphtml link only in the rendered DOM

This page's rel=amphtml link is added by JavaScript, so it is missing from the raw HTML that most crawlers read first.

How this page is built

This page is an ordinary page with an AMP version. The rel=amphtml link is not in the HTML the server sends. A short script adds it to the head when the page loads.

The AMP version is valid and canonicalises here. It is also linked below.

Why it matters

Google discovers AMP pages from the rel=amphtml link, and it reads that link most reliably from the raw HTML. A link added by JavaScript is seen only after rendering, if at all. Many other crawlers do not run JavaScript, so they never find it.

How to check it

View the raw source and search for amphtml, then compare with the rendered DOM in the browser’s developer tools. Crawl tools that compare raw and rendered HTML report the difference.

How to fix it

Output the rel=amphtml link in the server-rendered HTML.

Back to all tests