Skip to content

Commit

Permalink
(js) Improve CAS handling
Browse files Browse the repository at this point in the history
Fixes #4468
  • Loading branch information
cgx committed Jan 24, 2019
1 parent 5cac669 commit 3c60e2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/WebServerResources/js/Common/Common.app.js
Expand Up @@ -291,7 +291,7 @@
// When expecting JSON but receiving HTML, assume session has expired and reload page
if (response && /^application\/json/.test(response.config.headers.Accept) &&
/^[\n\r ]*<!DOCTYPE html>/.test(response.data)) {
$window.location.reload(true);
$window.location.href = $window.ApplicationBaseURL;
return $q.reject();
}
return response;
Expand Down

0 comments on commit 3c60e2a

Please sign in to comment.