<p>I am using the postgresql database.</p>
<p>When I have a user name "ABC", then I can access it through the link <code>/user/ABC</code>, while I cannot access it through<code> /user/abc</code>, or any other combination of the mixed-case link. It's caused by the code <a href="https://github.com/openstreetmap/openstreetmap-website/blob/36817f777c502a5a044e82fc3e3ca55f5433d66f/app/controllers/users_controller.rb#L372">https://github.com/openstreetmap/openstreetmap-website/blob/36817f777c502a5a044e82fc3e3ca55f5433d66f/app/controllers/users_controller.rb#L372</a>, which will parse the original form of parameters.</p>
<p>I guess we could change the code to:<br>
<code>@this_user = User.where('lower(display_name) = ?', params[:display_name].downcase).first</code></p>
<p>which make /user/abc and /user/ABC refer to the same person.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/2203">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLTb-DH322d4lFyX_89eXSnAoGnReks5vfVUlgaJpZM4cmBOh">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABWnLV35PQ8Kdzw-y-ecEmNjoXtffSSLks5vfVUlgaJpZM4cmBOh.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"link to user is case sensitive while user display name is case insensitive (#2203)"}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/openstreetmap-website/issues/2203"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/2203",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2203",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>