diff --git a/templates/app/client/components/auth(auth)/router.decorator.js b/templates/app/client/components/auth(auth)/router.decorator.js index 5b8fb0e6a..752ad0720 100644 --- a/templates/app/client/components/auth(auth)/router.decorator.js +++ b/templates/app/client/components/auth(auth)/router.decorator.js @@ -29,8 +29,8 @@ angular.module('<%= scriptAppName %>.auth') } event.preventDefault();<% if (filters.ngroute) { %> - $location.path('/');<% } if (filters.uirouter) { %> - $state.go('main');<% } %> + $location.path('/login');<% } if (filters.uirouter) { %> + $state.go('login');<% } %> }); } });