I'm using Angular UI Router and I'm having trouble defining my routes. I have some basic routes with states and URLs registered: /about, /register, / (Startpage).
When the user registers I want to give them a dynamic URL to their own personal page. And this would be a paramaterized state. I would like the URL to be http://www.whatever.com/[username] and if the user does not exist, redirect to a 404.
However, If i register a state named '/{userName}' this conflicts with my other routes and takes over all requests. How do I let through all statically registered routes?
I could do http://www.whatever.com/profile/[username]. But that's not what I, nor the client I'm developing for, wants.
Maybe I could use regexp to let the statically registered routes plus the base route '/'? Maybe there is another great solution out there!