From 26567ee59bbaa6e61a1612288b1b35cd100aa370 Mon Sep 17 00:00:00 2001 From: Max Pozdeev Date: Sat, 15 Jan 2022 15:27:35 +0300 Subject: [PATCH] reset location hash on logout to avoid reloading possible unaccessible list --- src/includes/mytinytodo.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/includes/mytinytodo.js b/src/includes/mytinytodo.js index 109d098..b4c580e 100644 --- a/src/includes/mytinytodo.js +++ b/src/includes/mytinytodo.js @@ -2478,6 +2478,7 @@ function logout() { $.post(mytinytodo.mttUrl+'ajax.php?logout', { logout:1 }, function(json){ flag.isLogged = false; + window.location.hash = ''; window.location.reload(); }, 'json'); return false;