Prevent authenticated pages appearing after logout
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user