You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
The current method of parsing the username via URL path segments (window.location.pathname.split("/")) is fragile. It breaks if the URL structure changes, if there is a trailing slash, or if new sub-paths are added to your routing.
Requirement
Decouple the username from the URL entirely. You need a reliable "source of truth" for the current user's identity that the frontend can read regardless of how the URL is structured.
What is needed
Inject the username: Pass the username from your backend into the HTML <head> using a <meta> tag when the page loads.
Centralize access: Create a single, small helper function that reads this meta tag.
Replace old logic: Remove the URL parsing logic from all your individual files (ranks.js, historical-graphs.js, etc.) and replace it with a call to this new helper function.
Please review our CONTRIBUTING.md guidelines before getting started.
A maintainer will review this issue shortly. If you would like to work on the issue yourself, please leave a comment requesting assignment.
Issue Assignment Policy
The issue creator is given the first priority to work on their issue.
If the creator declines or does not request assignment, the issue will be assigned to others in the order of requests received.
Please do not submit PRs or begin work until you are officially assigned.
Note: This project is currently maintained by a solo maintainer, so reviews, assignments, and responses may sometimes take a little time. Thanks for your patience.
Activity
github-actions commentedon Jul 20, 2026
Thank you for opening an issue.
Please review our
CONTRIBUTING.mdguidelines before getting started.A maintainer will review this issue shortly. If you would like to work on the issue yourself, please leave a comment requesting assignment.
Issue Assignment Policy
TanCodeX commentedon Jul 25, 2026
@jagdish-15 Please assign me this under gssoc.
github-actions commentedon Aug 12, 2026
This issue has been inactive for 14 days and has been marked as stale. To keep this issue open, please leave a comment.
Yashaswini-K-P commentedon Aug 12, 2026
working
github-actions commentedon Aug 27, 2026
This issue has been inactive for 14 days and has been marked as stale. To keep this issue open, please leave a comment.
Yashaswini-K-P commentedon Aug 27, 2026
linked pr