Exported HTML links to original wiki site #2350

Open
opened 2026-02-05 03:45:53 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @Adrian-at-CrimsonAzure on GitHub (Aug 6, 2021).

Describe the bug
Links within a page (like #bkmrk-whatever-the-header-is) still work, but links to other pages within the wiki link to the original URL on the hosted wiki.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Export a book as HTML
  2. Open HTML file
  3. Click on a link to a different page
  4. Get redirected to the original wiki

Expected behavior
A link in the downloaded HTML points to https://wiki.domain.com/books/my-book-name/page/my-lage-name#bkmrk-quest-progression instead of #bkmrk-quest-progression

I can post a sanitized example if you'd like.

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): v21.05.3
  • Hosting Method (Nginx/Apache/Docker): Docker
Originally created by @Adrian-at-CrimsonAzure on GitHub (Aug 6, 2021). **Describe the bug** Links within a page (like #bkmrk-whatever-the-header-is) still work, but links to other pages within the wiki link to the original URL on the hosted wiki. **Steps To Reproduce** Steps to reproduce the behavior: 1. Export a book as HTML 2. Open HTML file 3. Click on a link to a different page 3. Get redirected to the original wiki **Expected behavior** A link in the downloaded HTML points to ```https://wiki.domain.com/books/my-book-name/page/my-lage-name#bkmrk-quest-progression``` instead of ```#bkmrk-quest-progression``` I can post a sanitized example if you'd like. **Your Configuration (please complete the following information):** - Exact BookStack Version (Found in settings): v21.05.3 - Hosting Method (Nginx/Apache/Docker): Docker
Author
Owner

@Adrian-at-CrimsonAzure commented on GitHub (Aug 6, 2021):

Here's an example (Github won't let me upload HTML files)

It also seems to happen with PDFs as well.

@Adrian-at-CrimsonAzure commented on GitHub (Aug 6, 2021): [Here's an example](https://github.com/BookStackApp/BookStack/files/6947429/test.txt) (Github won't let me upload HTML files) It also seems to happen with PDFs as well.
Author
Owner

@badsectoracula commented on GitHub (Mar 4, 2024):

FWIW this still happens and i found this bug by searching Google about it.

@badsectoracula commented on GitHub (Mar 4, 2024): FWIW this still happens and i found this bug by searching Google about it.
Author
Owner

@LeoZieger commented on GitHub (Aug 26, 2024):

Are there any updates on this? This bug makes exporting some content really useless since I mostly reference to other pages of the same book and without these internal links some content is pretty much unreadable.

@LeoZieger commented on GitHub (Aug 26, 2024): Are there any updates on this? This _bug_ makes exporting some content really useless since I mostly reference to other pages of the same book and without these internal links some content is pretty much unreadable.
Author
Owner

@wcah commented on GitHub (Dec 1, 2025):

It would be nice to use links within the document that behave like the links in the table of contents. For example, it is useful to refer to a different section with a link that would take you there within the same exported document.

@wcah commented on GitHub (Dec 1, 2025): It would be nice to use links within the document that behave like the links in the table of contents. For example, it is useful to refer to a different section with a link that would take you there within the same exported document.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2350