I am using javascript (pure) in a web project in firebase. I'm used to getting URL parameters canonically, like: mydomain.com/?p=ID But I would like to make the URL friendly, for example: mydomain.com/nameOfMyUser
In this way, I would like to treat what comes after the slash bar as a parameter and display the content related to it on the screen.
The user's name will come from the firestore, that is, internally I will check the uniqueness, but it will be created by the user himself.
How can I use the URL suffix (nameOfMyUser) as if it were a parameter, avoiding 404 error?
Is this possible? Can someone help me?
Thanks.