Skip to content

fix: make public profile lookup case-insensitive#1200

Merged
Priyanshu-byte-coder merged 1 commit into
Priyanshu-byte-coder:mainfrom
sanzzzz-g:fix/case-insensitive-profile-route
May 27, 2026
Merged

fix: make public profile lookup case-insensitive#1200
Priyanshu-byte-coder merged 1 commit into
Priyanshu-byte-coder:mainfrom
sanzzzz-g:fix/case-insensitive-profile-route

Conversation

@sanzzzz-g
Copy link
Copy Markdown
Contributor

Summary

Fixes the issue where public profile URLs returned a 404 when usernames contained uppercase characters.

Closes #933

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / code cleanup

Changes Made

  • Replaced case-sensitive .eq("github_login", username) queries with .ilike(...)
  • Added canonical lowercase redirect for public profile URLs
  • Prevented 404 errors for usernames with uppercase characters
  • Improved URL consistency and canonical routing behavior

How to Test

Steps for the reviewer to verify this works:

  1. Run the application locally
  2. Navigate to a public profile URL using uppercase characters
  3. Example: /u/PriyanshU
  4. Verify the profile loads successfully instead of returning 404
  5. Verify the URL redirects to the lowercase canonical version

Screenshots (if UI change)

N/A

Checklist

  • Linked issue in summary
  • npm run lint passes locally
  • No TypeScript errors (npm run type-check)
  • Self-reviewed the diff
  • Added/updated tests if applicable

@vercel
Copy link
Copy Markdown

vercel Bot commented May 26, 2026

Someone is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel.

A member of the Team first needs to authorize it.

@sanzzzz-g
Copy link
Copy Markdown
Contributor Author

Hey @Priyanshu-byte-coder Implemented the fix for case-insensitive public profile routing.

Changes made

  • Replaced case-sensitive .eq("github_login", username) queries with .ilike(...)
  • Added canonical lowercase redirect handling
  • Prevented 404 errors for usernames containing uppercase characters

PR submitted for review. Thanks!

1 similar comment
@sanzzzz-g
Copy link
Copy Markdown
Contributor Author

Hey @Priyanshu-byte-coder Implemented the fix for case-insensitive public profile routing.

Changes made

  • Replaced case-sensitive .eq("github_login", username) queries with .ilike(...)
  • Added canonical lowercase redirect handling
  • Prevented 404 errors for usernames containing uppercase characters

PR submitted for review. Thanks!

@Priyanshu-byte-coder Priyanshu-byte-coder added gssoc:approved GSSoC: PR approved for scoring level:intermediate GSSoC: Intermediate difficulty (35 pts) labels May 27, 2026
@Priyanshu-byte-coder Priyanshu-byte-coder merged commit 749eeb1 into Priyanshu-byte-coder:main May 27, 2026
1 check passed
@github-actions
Copy link
Copy Markdown

🎉 Merged! Thanks for contributing to DevTrack.

If the project has been useful to you, a ⭐ star on the repo is the easiest way to support it — it helps DevTrack get discovered by more developers.

Keep an eye on open issues for your next contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved GSSoC: PR approved for scoring level:intermediate GSSoC: Intermediate difficulty (35 pts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Public profile returns 404 for usernames containing uppercase letters

2 participants