Angular 2 bug in url after auto compile

2

Whenever my Angular app auto compiles, the url is never restarted but my app goes back to the home page anyway. So if I'm at the following URL:

http://localhost:4200/alguma-url

So I make some changes to the code, Angular 2 auto compiles to apply the changes and back to the home page, but with the same URL as before and not the one referring to the home page. So if I try to visit some link Angular concatenates the URL and leaves it something like this:

http://localhost:4200/alguma-url/alguma-url

I do not know how but the application keeps running, but of course at some point it to load the pages and then I have to reset the URL manually.

This is taking a long time and I would like to know if there is any way to set a "root" URL for when Angular compiles alone.

    
asked by anonymous 29.05.2017 / 19:13

0 answers