# ה-canonical URL של דף פרופיל המשתמש אינו מנורמל רישיות

**URL:** https://meta.discourse.org/t/user-profile-page-canonical-url-is-not-case-normalized/190847
**Category:** Feature
**Tags:** pr-welcome
**Created:** [18 במאי,‏ 2021,‏ 7:43pm UTC](https://meta.discourse.org/t/user-profile-page-canonical-url-is-not-case-normalized/190847 "2021-05-18T19:43:11Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [18 במאי,‏ 2021,‏ 7:43pm UTC](https://meta.discourse.org/t/user-profile-page-canonical-url-is-not-case-normalized/190847/1 "2021-05-18T19:43:11Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [20 במאי,‏ 2021,‏ 4:36am UTC](https://meta.discourse.org/t/user-profile-page-canonical-url-is-not-case-normalized/190847/2 "2021-05-20T04:36:00Z")

</div>

Hmm is this an issue in practice?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [20 במאי,‏ 2021,‏ 5:40am UTC](https://meta.discourse.org/t/user-profile-page-canonical-url-is-not-case-normalized/190847/3 "2021-05-20T05:40:58Z")

</div>

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](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](https://meta.discourse.org/g/Admins)

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

Low priority but we should clean this up.

Changing this to #Contribute > Feature though cause nothing is really broken, it is just odd and inconsistent.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [20 במאי,‏ 2021,‏ 6:45pm UTC](https://meta.discourse.org/t/user-profile-page-canonical-url-is-not-case-normalized/190847/4 "2021-05-20T18:45:58Z")

</div>

> [@sam](#):
>
> Low priority but we should clean this up.

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

---

<div class="post-metadata">

### Author: ![andrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrei/32/205142_2.png) [@andrei](https://meta.discourse.org/u/andrei)
#### Post date: [20 במאי,‏ 2021,‏ 6:59pm UTC](https://meta.discourse.org/t/user-profile-page-canonical-url-is-not-case-normalized/190847/5 "2021-05-20T18:59:27Z")

</div>

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

---

<div class="post-metadata">

### Author: ![stance455](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stance455/32/255345_2.png) [@stance455](https://meta.discourse.org/u/stance455)
#### Post date: [6 בפברואר,‏ 2023,‏ 9:59pm UTC](https://meta.discourse.org/t/user-profile-page-canonical-url-is-not-case-normalized/190847/7 "2023-02-06T21:59:03Z")

</div>

> [@sam](#):
>
> 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](https://meta.discourse.org/u/codinghorrOr)
> 
> [https://meta.discourse.org/u/cOdinghorror](https://meta.discourse.org/u/cOdinghorror)

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)

> [@sam](#):
>
> We already perform normalization using a redirect for [https://meta.discourse.org/c/Bug/1/l/unread](https://meta.discourse.org/c/Bug/1/l/unread) and [User profile page canonical URL is not case normalized](https://meta.discourse.org/t/incorrect-canonical-url-for-user-profile-PAGE/190847)

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.

---

<div class="post-metadata">

### Author: ![stance455](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stance455/32/255345_2.png) [@stance455](https://meta.discourse.org/u/stance455)
#### Post date: [18 בפברואר,‏ 2023,‏ 10:06pm UTC](https://meta.discourse.org/t/user-profile-page-canonical-url-is-not-case-normalized/190847/8 "2023-02-18T22:06:15Z")

</div>

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](https://meta.discourse.org/tag/Official)

and

[https://meta.discourse.org/tag/official](https://meta.discourse.org/tag/official)

go to the same place but have self referencing canonicals instead of just the lower-case version.
