Angular 1.5 component router browser history issue

175 Views Asked by At

I am using angular 1.5.x with components and the component router.

My web app (that is not using angular) has an access to my angular app via a link.

When I arrive in my angular app, I'm stuck in it, the browser (chrome) back button is not working even if the history is "fine" -> I see by a right click on the back button that the non-angular app url is present and I can click on it, I am redirected. But the button stays stuck on the last history entry, the app...

I've seen many solutions that speaks about pushState / replaceState but I can't get it working with this component router ( as I can use ng-outlet in-page views).

More explanation :

The app route has a useAsDefault route to settings and settings has a useAsDefault route to user.

I would like to not save history for some routes except for the main view changes, and find a way to return back to non-angular app.

Could you help me to find the good way ?

Thank you.

0

There are 0 best solutions below