Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect un-encoded player URLs if possible #866

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

francislavoie
Copy link
Contributor

This is a bit of a fun hack.

For example, you might request https://w3champions.com/player/Ruhigengeist#1200 but this results in a broken page since no user is found. We can be smarter about this because the # is the "fragment" (aka "hash") part of the URL, so we can redirect on mount to the correct URL i.e. https://w3champions.com/player/Ruhigengeist%231200 and it can even work if there's a path like /matches at the end.

@francislavoie francislavoie force-pushed the player-hash-redirect branch 2 times, most recently from ec140eb to 59fd33a Compare October 31, 2024 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant