From ca2dfb669b76c1f85d578c0f0fc13beca281c696 Mon Sep 17 00:00:00 2001 From: Max Peterson Date: Thu, 1 May 2014 21:07:06 -0500 Subject: [PATCH] Fix logout. --- app/scripts/app.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/scripts/app.js b/app/scripts/app.js index 85bcd4d..c92e264 100644 --- a/app/scripts/app.js +++ b/app/scripts/app.js @@ -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: '/' });