From 89dac52f490fb3e5eb2507581006a4847808a557 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 19 Oct 2025 15:38:10 +0300 Subject: [PATCH] fix(client/print): read note ID properly from note path --- apps/client/src/print.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/client/src/print.tsx b/apps/client/src/print.tsx index dda6ae2b2..4d74fd90c 100644 --- a/apps/client/src/print.tsx +++ b/apps/client/src/print.tsx @@ -4,7 +4,10 @@ import { CustomNoteList } from "./widgets/collections/NoteList"; import "./print.css"; async function main() { - const noteId = window.location.pathname.split("/")[2]; + const notePath = window.location.hash.substring(1); + const noteId = notePath.split("/").at(-1); + if (!noteId) return; + const froca = (await import("./services/froca")).default; const note = await froca.getNote(noteId);