User profile lookups are currently case-sensitive, which makes profile URLs unreliable for sharing and linking. Usernames on most platforms (including Github itself) are case-insensitive, so users reasonably expect the same behavior here.
Steps to reproduce
Visit https://tokscale.ai/u/imlunahey → returns "user not found"
Visit https://tokscale.ai/u/ImLunaHey → loads correctly
Expected behavior
Both URLs should resolve to the same profile, regardless of casing.
Suggested fix
The lookup in packages/frontend/src/app/api/users/[username]/route.ts (around line 31) appears to do an exact-match query on username. Normalizing the input to lowercase before querying — or using a case-insensitive comparison — should resolve this. Depending on how usernames are stored, it may also be worth ensuring stored usernames are normalized on write so the index can still be used efficiently.
User profile lookups are currently case-sensitive, which makes profile URLs unreliable for sharing and linking. Usernames on most platforms (including Github itself) are case-insensitive, so users reasonably expect the same behavior here.
Steps to reproduce
Visit https://tokscale.ai/u/imlunahey → returns "user not found"
Visit https://tokscale.ai/u/ImLunaHey → loads correctly
Expected behavior
Both URLs should resolve to the same profile, regardless of casing.
Suggested fix
The lookup in packages/frontend/src/app/api/users/[username]/route.ts (around line 31) appears to do an exact-match query on username. Normalizing the input to lowercase before querying — or using a case-insensitive comparison — should resolve this. Depending on how usernames are stored, it may also be worth ensuring stored usernames are normalized on write so the index can still be used efficiently.