(js) Improve CAS handling

Fixes #4468
pull/249/head
Francis Lachapelle 2019-01-24 13:12:04 -05:00
parent 5cac669604
commit 3c60e2a784
1 changed files with 1 additions and 1 deletions

View File

@ -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;