Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

Allow mobile editor return path option

yoma9cbbe3660482
diff --git a/apps/web/src/lib/mobile-editor.ts b/apps/web/src/lib/mobile-editor.ts
index 37ff08e2..cbfa594b 100644
--- a/apps/web/src/lib/mobile-editor.ts
+++ b/apps/web/src/lib/mobile-editor.ts
@@ -1,7 +1,7 @@
-export const openStandaloneMobileEditor = (memoId: string) => {
+export const openStandaloneMobileEditor = (memoId: string, returnTo = "/") => {
const params = new URLSearchParams({
memoId,
- returnTo: "/",
+ returnTo,
});
window.location.href = `/mobile-edit.html#${params.toString()}`;
};