This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository coselmar. See http://git.codelutin.com/coselmar.git commit 137f5034d61a098c2c7f10039f66beed3d9eaa4c Author: Yannick Martel <martel@©odelutin.com> Date: Mon Dec 21 16:19:32 2015 +0100 fixes #7851 Gestion du rechargement de la page d'accueil en cas de déconnexion --- coselmar-ui/src/main/webapp/js/coselmar-controllers.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/coselmar-ui/src/main/webapp/js/coselmar-controllers.js b/coselmar-ui/src/main/webapp/js/coselmar-controllers.js index 3b2d5b2..fe038a7 100644 --- a/coselmar-ui/src/main/webapp/js/coselmar-controllers.js +++ b/coselmar-ui/src/main/webapp/js/coselmar-controllers.js @@ -66,7 +66,11 @@ coselmarControllers.controller("HomeCtrl", ['$scope', '$http', '$location', '$ro $scope.logout = function() { delete $scope.context.currentUser; localStorage.removeItem('coselmar-jwt'); - $location.path('/'); + if ($location.url() == '/') { + $route.reload(); + } else { + $location.path('/'); + } } // i18n Management -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.