RGJ
(Richard - Communiteq)
5월 18, 2021, 7:43오후
1
It seems like URL’s to user profiles are not case sensitive.
For instance https://meta.discourse.org/u/DiscObOt works just as well as https://meta.discourse.org/u/discobot
But the canonical URL in the first variation is not canonicalized into the ‘official’ case of the username, possibly leading to duplicate content issues or the wrong variation being indexed.
So the canonical URL of the first variation is:
<link rel="canonical" href="https://meta.discourse.org/u/DiscObOt" />
while it should be
<link rel="canonical" href="https://meta.discourse.org/u/discobot" />
leading to the ‘correctly’ spelled variant.
6개의 좋아요
Hmm is this an issue in practice?
1개의 좋아요
sam
(Sam Saffron)
5월 20, 2021, 5:40오전
3
4개의 좋아요
Sure perhaps @andrei could add to his list? this one seems easy and high reward for low risk?
2개의 좋아요
andrei
(Andrei Prigorshnev)
5월 20, 2021, 6:59오후
5
I’m adding this to my list with low priority.
3개의 좋아요
I’m also for cleaning this up..
You’ll also notice that each of those urls has a different canonical pointing to itself. (@RGJ already mentioned this)
Correct, I imagine it should be the same for the user urls, or at the very least have all those urls share the same canonical.
I’d also like to add that tag urls also exhibit similar behavior.
In that, the tag urls are not “case normalized” (if thats the proper terminology).
So both
https://meta.discourse.org/tag/Official
and
https://meta.discourse.org/tag/official
go to the same place but have self referencing canonicals instead of just the lower-case version.
1개의 좋아요