User profile page canonical URL is not case normalized

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개의 좋아요

그렇지 않을 것 같지만, 다음을 허용하는 것이 다소 이상합니다:

https://meta.discourse.org/u/codinghorror

https://meta.discourse.org/u/codinghorrOr

https://meta.discourse.org/u/cOdinghorror

토픽 URL / 카테고리 URL을 정규화하는 방식과 유사하게, 사용자 이름을 소문자로 정규화하고 다양한 대소문자 오류가 있는 사용법에 대해 강제로 리다이렉트하도록 해야 합니다.

https://meta.discourse.org/g/Admins 에 대해서도 동일한 정규화가 적용되어야 할 것 같습니다.

https://meta.discourse.org/c/Bug/1/l/unreadhttps://meta.discourse.org/t/incorrect-canonical-url-for-user-profile-PAGE/190847 에 대해서는 이미 리다이렉트를 사용하여 정규화를 수행하고 있습니다.

우선순위는 낮지만, 이 부분을 정리해야 합니다.

실제로 깨진 것은 없으므로, 단지 이상하고 일관성이 없을 뿐이기에 이 이슈를 Contribute > Feature 로 변경합니다.

4개의 좋아요

Sure perhaps @andrei could add to his list? this one seems easy and high reward for low risk?

2개의 좋아요

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개의 좋아요