Skip to content

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

Split mobile editor href builder

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