BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

Exported HTML links to original wiki site

Open Adrian-at-CrimsonAzure opened this issue 4 years ago • 4 comments

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

Adrian-at-CrimsonAzure avatar Aug 06 '21 18:08 Adrian-at-CrimsonAzure

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

It also seems to happen with PDFs as well.

Adrian-at-CrimsonAzure avatar Aug 06 '21 18:08 Adrian-at-CrimsonAzure

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

badsectoracula avatar Mar 04 '24 06:03 badsectoracula

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 avatar Aug 26 '24 06:08 LeoZieger