Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

URL with ?amp query var unexpectedly fails AMP URL test #113

Closed
westonruter opened this issue May 4, 2019 · 4 comments · May be fixed by #114
Closed

URL with ?amp query var unexpectedly fails AMP URL test #113

westonruter opened this issue May 4, 2019 · 4 comments · May be fixed by #114

Comments

@westonruter
Copy link
Member

This URL is failing the AMP URL test: https://www.history101.com/vikingfacts/?amp

Results: https://ampbench.appspot.com/validate?url=https%3A%2F%2Fwww.history101.com%2Fvikingfacts%2F%3Famp

image

Nevertheless, this AMP URL also with ?amp is passing the AMP URL test:

https://make.xwp.co/2019/03/15/7-experiences-that-create-team/?amp

Results: https://ampbench.appspot.com/validate?url=https%3A%2F%2Fmake.xwp.co%2F2019%2F03%2F15%2F7-experiences-that-create-team%2F%3Famp

image

What's the difference? This is of concern for the AMP WordPress plugin because we are moving to ?amp for all paired AMP URLs.

@swissspidy
Copy link

I think the issue is that the "AMP URL" label is misleading. This is not validating the format of the URL, but actually checks whether that page is valid AMP.

The "FAIL" comes from the AMP validation output that you can see when scrolling down on https://ampbench.appspot.com/validate?url=https%3A%2F%2Fwww.history101.com%2Fvikingfacts%2F%3Famp:

Screenshot 2019-05-04 at 12 10 28

tl;dr everything works correctly in AMP Bench

@ithinkihaveacat
Copy link
Collaborator

@swissspidy is correct: the "AMP URL" status is misleading. It doesn't do anything to validating the URL itself (AMP has no requirements here) but whether the document itself is valid. I guess it should read "AMP valid?" or similar. Will create a PR to fix this.

@westonruter
Copy link
Member Author

@ithinkihaveacat Humm. The main validator doesn't report an error:

https://validator.ampproject.org/#url=https%3A%2F%2Fwww.history101.com%2Fvikingfacts%2F%3Famp

Is AMP Bench's validator stale?

@ithinkihaveacat
Copy link
Collaborator

Uh yes you're right, the validator was stale. Fixing that problem is #97

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants