Throttling history state changes to prevent the browser from hanging
In my case I had an infinite loop.
If you are using a wildcard (*) in your routing make sure that it is the last one in the list. You should define all other routes first.
{ path '/', component: HomeComponent },
{ path 'profile', component: ProfileComponent },
// All your other routes should come first
{ path: '404', component: NotFoundComponent },
{ path: '**', component: NotFoundComponent }
Delete canActivate in login route. It's loop.