2
Every time my Angular application auto compiles, the url is never restarted but my application goes back to the homepage the same way. So if I’m in the following URL:
http://localhost:4200/alguma-url
Then I make some change in the code, Angular 2 auto compiles to apply the changes and goes back to the home page, but with the same previous URL and not the one referring to the home page. So if I try to visit some link Angular concatenates the URL and leaves it more or less like this:
http://localhost:4200/alguma-url/alguma-url
I don’t know how but the application keeps working, but of course at a certain time it to load the pages and then I have to reset the URL manually.
This is taking me a long time and I would like to know if there is any way to define a "root" URL for when Angular compiles alone.