PHRAS-3078 Redirect to Home when session is expired

This commit is contained in:
Harrys Ravalomanana
2020-05-19 18:05:36 +04:00
parent e066ca19fa
commit e806cc3e67
2 changed files with 6 additions and 3 deletions

View File

@@ -1,3 +1,5 @@
import Alerts from "../../../../../../Phraseanet-production-client/src/components/utils/alert";
var p4 = p4 || {};
var datepickerLang = [];
@@ -116,8 +118,7 @@ var commonModule = (function ($, p4) {
showMessages = false;
if (data.status == 'disconnected' || data.status == 'session') {
disconnected();
return false;
self.location.replace(self.location.href);
}
if (showMessages) {
var box = $('#notification_box');