I\'m trying to introduce login into the way the user navigates accross the application.
I pretend to redirect the user to the page were he was before he navigate to
This answer helped me:
$urlRouterProvider.otherwise( function($injector, $location) { var $state = $injector.get("$state"); $state.go("app.home"); });
Original: Why does AngularJS with ui-router keep firing the $stateChangeStart event?