BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
15.29k stars 1.91k forks source link

Exported HTML links to original wiki site #2875

Open Adrian-at-CrimsonAzure opened 3 years ago

Adrian-at-CrimsonAzure commented 3 years ago

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):

Adrian-at-CrimsonAzure commented 3 years ago

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

It also seems to happen with PDFs as well.

badsectoracula commented 8 months ago

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

LeoZieger commented 2 months ago

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.