Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Links in contained webpage point to hosted instance #2090

Open
techauthoruk opened this issue May 4, 2020 · 1 comment
Open

Links in contained webpage point to hosted instance #2090

techauthoruk opened this issue May 4, 2020 · 1 comment

Comments

@techauthoruk
Copy link

@techauthoruk techauthoruk commented 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:

  1. Open a book that contains inline links
  2. Click on 'Export'
  3. Scroll down to 'Contained Web File'
  4. Open the generated file in your browser
  5. Select an inline link

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

  • Exact BookStack Version (Found in settings): 0.29.2
  • PHP Version: 7.2
  • Hosting Method (Nginx/Apache/Docker): Apache on Ubuntu 18.04

Additional context
Web browser if latest version of Firefox

@techauthoruk
Copy link
Author

@techauthoruk techauthoruk commented 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.