From daf240e36331067a7a3a2218188ef4260025db55 Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 5 Mar 2025 13:36:17 +1100 Subject: [PATCH] When the session expired, automatically refresh the page with the intended desitination without the alert --- public/js/custom.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/js/custom.js b/public/js/custom.js index e49996a9..414e691d 100644 --- a/public/js/custom.js +++ b/public/js/custom.js @@ -36,11 +36,11 @@ function getNode(item) { case 404: $('.main-content').empty().append(e.responseText); break; - case 409: + case 409: // Not in root location.replace('/#'+item); break; - case 419: - alert('Session has expired, reloading the page and try again...'); + case 419: // Session Expired + location.replace('/#'+item); location.reload(); break; case 500: