Kanonische URL der Benutzerprofilseite ist nicht fallnormalisiert

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 „Gefällt mir“

Hmm is this an issue in practice?

1 „Gefällt mir“

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 „Gefällt mir“

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

2 „Gefällt mir“

I’m adding this to my list with low priority.

3 „Gefällt mir“

Ich bin auch dafür, das aufzuräumen..

Du wirst auch feststellen, dass jede dieser URLs eine andere kanonische URL hat, die auf sich selbst verweist. (@RGJ hat das bereits erwähnt)

Richtig, ich stelle mir vor, dass es für die Benutzer-URLs dasselbe sein sollte, oder zumindest, dass all diese URLs dieselbe kanonische URL haben sollten.

Ich möchte auch hinzufügen, dass Tag-URLs ein ähnliches Verhalten aufweisen.

Das heißt, die Tag-URLs sind nicht “case-normalisiert” (wenn das die richtige Terminologie ist).

Daher gehen sowohl

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

als auch

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

an dieselbe Stelle, haben aber sich selbst referenzierende Kanoniker anstelle der einfach kleingeschriebenen Version.

1 „Gefällt mir“