Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upDon't use bad canonical links #368
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
pushcx
Jun 12, 2017
Member
For more context: a lot of sites have bad <link rel=canonical> tags in their headers. The two most common behaviors are pointing it at the homepage (they didn't understand what the tag is for) and not updating one that comes in a template (like in this story's case, pointing at username.github.com). I contact site owners to tell them about the bug when I can easily find contact info, but it would be nice if Lobsters could catch the second case.
Now that I write this up, I think we should probably also ignore any canonical link that points right to a domain name. It's the most popular failure mode, and if a Lobsters user is submitting a homepage with one the system would correctly use the URL they entered anyways.
|
For more context: a lot of sites have bad Now that I write this up, I think we should probably also ignore any canonical link that points right to a domain name. It's the most popular failure mode, and if a Lobsters user is submitting a homepage with one the system would correctly use the URL they entered anyways. |
pushcx commentedJun 12, 2017
On a story that was posted twice with a bad link, emmab suggested:
I think it's a good idea. I'm posting this issue for discussion and hopefully someone with free time can implement it.