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;