My challenge is dealing with users who have slashes in their usernames. I want to create easy-to-use URLs for them, like /user/username
, even if the username contains special characters, such as /user/xXx/superboy
.
I'm utilizing client-side routing, but it lacks support for wildcards. One solution could be encoding the usernames, like href="/user/xXx%2Fsuperboy"
. However, the browser automatically decodes the URL before reaching the link, causing router matching issues. Is there a way to prevent automatic URL decoding by the browser or any other approach to resolve this dilemma (such as using a different decoding method)? Thank you.
For my routing needs, I am working with AngularJS and Angular UI-Router.