From 9e88bdb3fc810d7eb64340828d0f104bc6284e4d Mon Sep 17 00:00:00 2001 From: Ethan Turner Date: Thu, 22 Oct 2026 18:08:24 -0700 Subject: [PATCH] fix(BookService): resolve Book ID when using @go link --- src/services/book.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/book.ts b/src/services/book.ts index 178a376..07f9312 100644 --- a/src/services/book.ts +++ b/src/services/book.ts @@ -871,7 +871,8 @@ export class BookService { const libClient = new LibraryService({ lib }); await libClient.init(); - const page = await libClient.api.pages.getPage(path); + const goLinkID = path.match(/^\/@go\/page\/(\d+)\/?$/)?.[1]; + const page = await libClient.api.pages.getPage(goLinkID ? Number(goLinkID) : path); if (!page) return null; if (Number.isNaN(Number(page['@id']))) return null;