From 66f99d66d82c1eca12004b75d3e88bed0a1611a9 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Fri, 15 Nov 2013 15:00:57 +0000 Subject: [PATCH] KEYCLOAK-124 --- .../resources/META-INF/resources/admin/js/app.js | 2 +- .../resources/admin/js/controllers/realm.js | 1 + .../META-INF/resources/admin/partials/menu.html | 2 +- .../keycloak/services/resources/SaasService.java | 13 +++++++++---- 4 files changed, 12 insertions(+), 6 deletions(-) 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 @@