Prevent authenticated pages appearing after logout

This commit is contained in:
A R R R Associates
2026-08-01 13:35:30 +05:30
parent 2c415c38b9
commit 181d4f2c2e
3 changed files with 57 additions and 1 deletions
+21
View File
@@ -748,5 +748,26 @@
})();
</script>
{% if full_auth %}
<script>
(function () {
"use strict";
window.addEventListener("pageshow", function (event) {
var navigationEntries = window.performance && performance.getEntriesByType
? performance.getEntriesByType("navigation")
: [];
var navigation = navigationEntries && navigationEntries.length
? navigationEntries[0]
: null;
if (event.persisted || (navigation && navigation.type === "back_forward")) {
window.location.reload();
}
});
})();
</script>
{% endif %}
</body>
</html>