Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: replace hash route on logout

thecodrr86836e1d1891
diff --git a/apps/web/src/stores/editor-store.js b/apps/web/src/stores/editor-store.js
index 64b834311..4d4d786a1 100644
--- a/apps/web/src/stores/editor-store.js
+++ b/apps/web/src/stores/editor-store.js
@@ -40,7 +40,7 @@ class EditorStore extends BaseStore {
init = () => {
EV.subscribe(EVENTS.userLoggedOut, () => {
- hashNavigate("/notes/create", { addNonce: true });
+ hashNavigate("/notes/create", { replace: true, addNonce: true });
});
};