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

sidebar relative path issues #1569

Closed
wizardforcel opened this issue May 8, 2021 · 1 comment
Closed

sidebar relative path issues #1569

wizardforcel opened this issue May 8, 2021 · 1 comment

Comments

@wizardforcel
Copy link

wizardforcel commented May 8, 2021

Bug Report

Steps to reproduce

  1. set relativePath as true

  2. set loadSidebar as SUMMARY.md

  3. create path/to/doc1.md and path/to/doc2.md

  4. write the link path/to/doc2.md to SUMMARY.md

  5. access #/path/to/doc1

What is current behaviour

the sidebar link is #/path/to/path/to/doc2

What is the expected behaviour

the sidebar link should be #/path/to/doc2

The sidebar and article come from different sources, so have different base pathes.

The base path of all sidebar links should be dirname($docsify.loadSidebar), not dirname(location.hash).

Other relevant information

  • Your OS:
  • Node.js version:
  • npm/yarn version:
  • Browser version:
  • Docsify version: 4.11.6
  • Docsify plugins:
@jhildenbiddle
Copy link
Member

Bug acknowledged. Tracking with #1891.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants