-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rel="canonical" different domain false negative #4440
Comments
Hi @callmenicholi thanks for your bug report! Can you provide the URLs of the pages you tested so we can reproduce the issue? cc @kdzwinel |
You can use The Hangout for testing. |
Thanks! Here's the result of my test run: https://googlechrome.github.io/lighthouse/viewer/?gist=646764b85fff44a845944b905fe26dd8 It does seem like a bug that the error message is that the domains are different, when the canonical URL is the same as the base URL. Assigning to Konrad to investigate further. |
I did couple of runs using extension, DevTools panel and console and only managed to reproduce it once at the very beginning. The issue was, that the main resource was not identified correctly because main HTML page was returning HTTP 304. Instead, font was identified as a main resource causing canonical audit to fail: Can anyone still reproduce it? @callmenicholi have you, by any chance, changed something on that page in the meantime? |
I have made no changes. It’s in your hands. |
States "Document does not have a valid rel=canonical. Points to a different domain."
This is not true for the sites I ran it for.
There appears to be a bug.
The text was updated successfully, but these errors were encountered: