In my Angular app, I have a view and a edit view with a input form. The problem is:
If I use the browser's back button, window.history.back() or the equivalent location.back() in Angular2 once, it will work fine as expected.
But if I trigger successive (two times) the browser's back button, window.history.back() or the equivalent location.back(), it will start a circle - meaning returning to the initial site.
Another strange behavior with the same sites is:
The history seems to be corrupted.
Does anybody have a idea what the problem could be. Is it possible that it correlate with the form?
Do not import routing multiple times.
export const routing: ModuleWithProviders = RouterModule.forRoot(routes)