angular / router

The Angular 1 Component Router
MIT License
665 stars 135 forks source link

useAsDefault and browser's history #416

Open ThomasGilbert opened 8 years ago

ThomasGilbert commented 8 years ago

Hi,

I'm migrating my app using the new component routing approach. I came across the following issue : if I specify the useAsDefault attribute in a route, the rule is correctly applied and I get directed to the expected component. But, if I click on the browser's Back button, it stays on the same page. Looks like it goes back to the previously requested page then the route rule is applied again etc...

I think that the state should be saved in the history with replaceState instead of pushState in case of 'useAsDefault' redirection...

ThomasGilbert commented 8 years ago

Is this the right place to report such an issue or should I post to Angular Router 2 as instead ?