diff --git a/guacamole/src/main/webapp/app/index/controllers/indexController.js b/guacamole/src/main/webapp/app/index/controllers/indexController.js index 642d336b7..b7d2c8d91 100644 --- a/guacamole/src/main/webapp/app/index/controllers/indexController.js +++ b/guacamole/src/main/webapp/app/index/controllers/indexController.js @@ -89,7 +89,7 @@ angular.module('index').controller('indexController', ['$scope', '$injector', // Provide simple mechanism for logging out the current user $scope.logout = function logout() { - authenticationService.logout().success(function logoutSuccess() { + authenticationService.logout()['finally'](function logoutComplete() { $location.path('/login'); }); };