diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/js/app.js b/admin-ui/src/main/resources/META-INF/resources/admin/js/app.js index ab76accd58..439cff4fc0 100755 --- a/admin-ui/src/main/resources/META-INF/resources/admin/js/app.js +++ b/admin-ui/src/main/resources/META-INF/resources/admin/js/app.js @@ -320,7 +320,7 @@ module.factory('errorInterceptor', function($q, $window, $rootScope, $location, if (response.status == 401) { console.log('session timeout?'); Auth.loggedIn = false; - $location.url('/'); + window.location = '/auth-server/rest/saas/login?path=' + $location.path(); } else { $rootScope.httpProviderError = response.status; } diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/js/controllers/realm.js b/admin-ui/src/main/resources/META-INF/resources/admin/js/controllers/realm.js index 84179d8b36..19a08cf548 100755 --- a/admin-ui/src/main/resources/META-INF/resources/admin/js/controllers/realm.js +++ b/admin-ui/src/main/resources/META-INF/resources/admin/js/controllers/realm.js @@ -15,6 +15,7 @@ module.controller('GlobalCtrl', function($scope, $http, Auth, Current, $location $scope.$watch(function() { return $location.path(); }, function() { + $scope.fragment = $location.path(); $scope.path = $location.path().substring(1).split("/"); }); diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/partials/menu.html b/admin-ui/src/main/resources/META-INF/resources/admin/partials/menu.html index 1958a74d21..13d6d9980e 100755 --- a/admin-ui/src/main/resources/META-INF/resources/admin/partials/menu.html +++ b/admin-ui/src/main/resources/META-INF/resources/admin/partials/menu.html @@ -3,7 +3,7 @@