Skip to content

Commit daf240e

Browse files
committed
When the session expired, automatically refresh the page with the intended desitination without the alert
1 parent 070aabf commit daf240e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

public/js/custom.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ function getNode(item) {
3636
case 404:
3737
$('.main-content').empty().append(e.responseText);
3838
break;
39-
case 409:
39+
case 409: // Not in root
4040
location.replace('/#'+item);
4141
break;
42-
case 419:
43-
alert('Session has expired, reloading the page and try again...');
42+
case 419: // Session Expired
43+
location.replace('/#'+item);
4444
location.reload();
4545
break;
4646
case 500:

0 commit comments

Comments
 (0)