ampbench icon indicating copy to clipboard operation
ampbench copied to clipboard

Unnecessary warning when using self-canonical

Open Gregable opened this issue 8 years ago • 2 comments

https://ampbench.appspot.com/validate?url=http%3A%2F%2Fwww.ampbyexample.com%2F

[Canonical URL is reachable][WARNING: AMP link not found in the Canonical page]

I believe this warning is caused by a self-canonical AMP page, which is perfectly reasonable. The only workaround would be to add <link rel=amphtml> to an AMP HTML page, which is undesirable.

Gregable avatar Jan 17 '18 20:01 Gregable

I am seeing the same issue for https://ampbench.appspot.com/validate?url=https://xwp.co

The xwp.co site is native/canonical AMP so there is no rel=amphtml link. There is, however, a rel=canonical link. Nevertheless, I'm seeing errors for both “AMP HTML Link in Canonical page?” and “AMP HTML Link in AMP page?”.

image

I don't understand why xwp.co has two errors whereas ampbyexample.com only has one, but they both only have rel=canonical and no rel=amphtml.

westonruter avatar Aug 04 '18 23:08 westonruter

I'm tracking the second FAIL at https://github.com/ampproject/ampbench/issues/65

andreban avatar Aug 22 '18 14:08 andreban