ユーザープロファイルページの正規URLで大文字小文字が正規化されていません

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

I don’t think it is … but it is kind of odd that we allow:

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

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

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

We should normalize the username to lowercase username and force a redirect for the various obscure mis-cased usages similar to how we normalize topic urls / category urls.

I guess the same normalization should hold for https://meta.discourse.org/g/Admins

We already perform normalization using a redirect for https://meta.discourse.org/c/Bug/1/l/unread and https://meta.discourse.org/t/incorrect-canonical-url-for-user-profile-PAGE/190847

Low priority but we should clean this up.

Changing this to feature though cause nothing is really broken, it is just odd and inconsistent.

「いいね!」 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

私もこれを整理することに賛成です。

各URLがそれぞれ異なる正規URLを指していることにも気づくでしょう。 (@RGJがすでに言及したことです)

その通りです。ユーザーURLについても同様であるべきだと想像します。少なくとも、それらのURLすべてが同じ正規URLを共有するようにすべきです。

タグのURLも同様の動作を示すことも付け加えたいと思います。

つまり、タグのURLは「大文字・小文字の正規化」されていません(それが適切な専門用語であればですが)。

そのため、

https://meta.discourse.org/tag/Official

https://meta.discourse.org/tag/official

の両方が同じ場所に移動しますが、小文字バージョンではなく、自己参照的な正規URLを持っています。

「いいね!」 1