parent
5cac669604
commit
3c60e2a784
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue