-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Relative canonical reported as invalid #12463
Comments
Thanks for filing @wasshuber! Please see #12149 and the Google Search documentation on this subject. This audit isn't about what can work, it's about SEO best practices. If that's not a concern this site has, feel free to ignore this result then. |
Thanks for the info. I guess my main problem here is the wording 'invalid'. 'Invalid' suggests that some syntax rule or official standard has been violated, which is not the case. Perhaps it should be called 'not recommended'. |
Yes, good point. Anyone watching interested in a good first bug to add "not recommended" to
:) |
@patrickhulce I think I can take this up. Let me know if I should. |
sure @techguysid go for it! :) |
@patrickhulce - Thanks! Do you want me to replace invalid |
Because we would still be using |
No, invalid URLs are still invalid. We're only tweaking the relative URL description to say it's not recommended |
Oh ok! |
@patrickhulce Here's the PR: #12479 |
Provide the steps to reproduce
What is the current behavior?
Reports canonical URL to be invalid because it is a relative URL.
What is the expected behavior?
The page defines a base URL with the
<base>
tag. This together with a relative URL in the<link rel=canonincal>
tag defines unambiguously a complete/absolute URL as the canonical URL. This should not create an invalid response. It is completely standard conformant. The Google crawler correctly picks up this canonical URL without any issues.Environment Information
Related issues
The text was updated successfully, but these errors were encountered: