mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-05 00:29:48 +03:00
On export, update in-content anchor links to not be non-http (#link) so anchors work within contained formats #1702
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @techauthoruk on GitHub (May 4, 2020).
Describe the bug
If you export a book or page as a contained webpage, the table of contents correctly references the contained page, but any inline links point to the Bookstack hosted version.
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
Inline links should point to the contained webpage
Screenshots
If applicable, add screenshots to help explain your problem.
Your Configuration (please complete the following information):
Additional context
Web browser if latest version of Firefox
@techauthoruk commented on GitHub (May 4, 2020):
Ah...brain not working today. Just realised that this only applies if the link is an entity link. If you manually code
[Custom foo description](#foo)and place an anchor tag in the section
<a name="foo"></a>Then all works as it should. Is there a way of automating this process when creating a contained webpage?