Skip to content

Commit

Permalink
Fix logout.
Browse files Browse the repository at this point in the history
  • Loading branch information
computmaxer committed May 2, 2014
1 parent 188865f commit ca2dfb6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ var app = angular.module('vinzApp', [
templateUrl: '/static/views/dashboard.html',
controller: 'DashboardCtrl'
})
.when('/logout/', {
redirectTo: function(){
window.location.href = '/logout/';
window.location.reload(true);
}
})
.otherwise({
redirectTo: '/'
});
Expand Down

0 comments on commit ca2dfb6

Please sign in to comment.