From 5cac669604effe276948e5b9e86f381d0da21ff4 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Tue, 22 Jan 2019 18:27:45 -0500 Subject: [PATCH] (js) Improve CAS handling Fixes #4468 --- UI/WebServerResources/js/Common/Common.app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/WebServerResources/js/Common/Common.app.js b/UI/WebServerResources/js/Common/Common.app.js index 62f62fc9b..f9808847a 100644 --- a/UI/WebServerResources/js/Common/Common.app.js +++ b/UI/WebServerResources/js/Common/Common.app.js @@ -312,7 +312,7 @@ if ($window.usesCASAuthentication && rejection.status == -1) { if ($window.attempted) { // Already attempted once -- reload page - $window.location.reload(true); + $window.location.href = $window.ApplicationBaseURL; } else { deferred = $q.defer(); @@ -330,7 +330,7 @@ } else if ($window.usesSAML2Authentication && rejection.status == 401 && !$window.attempted) { $window.attempted = true; - $window.location.reload(true); + $window.location.href = $window.ApplicationBaseURL; } else { // Broadcast the response error