Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

useAsDefault and browser's history #416

Open
ThomasGilbert opened this issue May 18, 2016 · 1 comment
Open

useAsDefault and browser's history #416

ThomasGilbert opened this issue May 18, 2016 · 1 comment

Comments

@ThomasGilbert
Copy link

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
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant