Skip to content

Commit 1bfcc1f

Browse files
committed
fix(app.coffee): missing preventDefault()
1 parent 8342a31 commit 1bfcc1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/templates/client/app/app(coffee).coffee

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,6 @@ angular.module '<%= scriptAppName %>', [<%= angularModules %>]
3636
# Redirect to login if route requires auth and you're not logged in
3737
$rootScope.$on <% if (filters.ngroute) { %>'$routeChangeStart'<% } %><% if (filters.uirouter) { %>'$stateChangeStart'<% } %>, (event, next) ->
3838
Auth.isLoggedIn (loggedIn) ->
39+
event.preventDefault()
3940
<% if (filters.ngroute) { %>$location.path '/login'<% } %><% if (filters.uirouter) { %>$state.go 'login'<% } %> if next.authenticate and not loggedIn
4041
<% } %>

0 commit comments

Comments
 (0)