Closed
Description
Bug Report
Steps to reproduce
-
set
relativePath
astrue
-
set
loadSidebar
asSUMMARY.md
-
create
path/to/doc1.md
andpath/to/doc2.md
-
write the link
path/to/doc2.md
toSUMMARY.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: