Skip to content

fix: handle special characters in GitHub username profile routes#592

Open
Priyanka0205-CSE wants to merge 1 commit into
indresh404:mainfrom
Priyanka0205-CSE:fix/profile-route-special-chars
Open

fix: handle special characters in GitHub username profile routes#592
Priyanka0205-CSE wants to merge 1 commit into
indresh404:mainfrom
Priyanka0205-CSE:fix/profile-route-special-chars

Conversation

@Priyanka0205-CSE

Copy link
Copy Markdown
Contributor

Bug

Profile pages for GitHub usernames containing dots (e.g. "john.doe")
crashed because the dot was misinterpreted by the router.

Fix

  • Encode the username with encodeURIComponent in DeveloperCard.jsx
    when building profile links
  • Decode it with decodeURIComponent in Profile.jsx when reading
    the route param

This ensures dots, hyphens, and other valid GitHub username characters
are handled correctly end-to-end.

Closes #584

@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ranker-hub Ready Ready Preview, Comment Jun 17, 2026 7:45pm

@github-actions github-actions Bot added bug Something isn't working frontend Frontend related changes (HTML/CSS/JS/React) gssoc GirlScript Summer of Code gssoc26 GirlScript Summer of Code 2026 nsoc NSoC NSoC'26 NSoC 2026 pending-review PR is pending review labels Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working frontend Frontend related changes (HTML/CSS/JS/React) gssoc GirlScript Summer of Code gssoc26 GirlScript Summer of Code 2026 nsoc NSoC NSoC'26 NSoC 2026 pending-review PR is pending review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Profile page crashes when GitHub username has special characters or dots in it

1 participant