Hyperlink between pages/books that works in both web and export. #5370

Open
opened 2026-02-05 10:00:41 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @LilMouse on GitHub (Jul 21, 2025).

Describe the feature you'd like

I would like to see a hyperlink feature that works in both the bookstack app and the exported (html) page.

I now seem to have a choice to use

  1. Using the link feature http://host.com/link/28#bkmrk-page-title
    Which opens the whole webpage, even after exporting the whole book.
  2. or "#bkmrk-page-title" or "#top" which is the bookmark feature #5090
    This one seems to work with exporting html/pdf AND within a single page in the web version.

But there is a difference between the web version and the export when using bookmarks to other pages.
I now have multiple pages in a book and jumping to "#other-page-bkmrk-id" will work in the export.
But if I use that, it will not jump to that heading/other page in the web version.

Maybe a possibility to link to page-nr#bookmark-id or page-name#bookmark-id# that also works in the web version?

Describe the benefits this would bring to existing BookStack users

It would let users use hyperlinks that work in both the web version and the (html/pdf) exported versions of documents instead of having to choose.

Can the goal of this request already be achieved via other means?

No, not that I have found.

Have you searched for an existing open/closed issue?

  • I have searched for existing issues and none cover my fundamental request

How long have you been using BookStack?

Under 3 months

Additional context

I have edited the generated bookmarks to include a page number/page-name so I can have the same heading text in multiple pages.
This makes it so I can jump to #26-bkmrk-title inside exports. Or #page-name-often-used-header-text

I have tested this with both HTML exports and PDF (weasyprint) exports.

Originally created by @LilMouse on GitHub (Jul 21, 2025). ### Describe the feature you'd like I would like to see a hyperlink feature that works in both the bookstack app and the exported (html) page. I now seem to have a choice to use 1. Using the link feature http://host.com/link/28#bkmrk-page-title Which opens the whole webpage, even after exporting the whole book. 2. or "#bkmrk-page-title" or "#top" which is the bookmark feature #5090 This one seems to work with exporting html/pdf AND within a single page in the web version. But there is a difference between the web version and the export when using bookmarks to other pages. I now have multiple pages in a book and jumping to "#other-page-bkmrk-id" will work in the export. But if I use that, it will not jump to that heading/other page in the web version. Maybe a possibility to link to `page-nr#bookmark-id` or `page-name#bookmark-id#` that also works in the web version? ### Describe the benefits this would bring to existing BookStack users It would let users use hyperlinks that work in both the web version and the (html/pdf) exported versions of documents instead of having to choose. ### Can the goal of this request already be achieved via other means? No, not that I have found. ### Have you searched for an existing open/closed issue? - [x] I have searched for existing issues and none cover my fundamental request ### How long have you been using BookStack? Under 3 months ### Additional context I have edited the generated bookmarks to include a page number/page-name so I can have the same heading text in multiple pages. This makes it so I can jump to` #26-bkmrk-title` inside exports. Or `#page-name-often-used-header-text` I have tested this with both HTML exports and PDF (weasyprint) exports.
OVERLORD added the 🔨 Feature Request label 2026-02-05 10:00:41 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5370