-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Labels
Description
Bug Report
Steps to reproduce
-
set
relativePathastrue -
set
loadSidebarasSUMMARY.md -
create
path/to/doc1.mdandpath/to/doc2.md -
write the link
path/to/doc2.mdtoSUMMARY.md -
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: