Bug Report
Steps to reproduce
-
set relativePath as true
-
set loadSidebar as SUMMARY.md
-
create path/to/doc1.md and path/to/doc2.md
-
write the link path/to/doc2.md to SUMMARY.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:
Bug Report
Steps to reproduce
set
relativePathastrueset
loadSidebarasSUMMARY.mdcreate
path/to/doc1.mdandpath/to/doc2.mdwrite the link
path/to/doc2.mdtoSUMMARY.mdaccess
#/path/to/doc1What is current behaviour
the sidebar link is
#/path/to/path/to/doc2What is the expected behaviour
the sidebar link should be
#/path/to/doc2The sidebar and article come from different sources, so have different base pathes.
The base path of all sidebar links should be
dirname($docsify.loadSidebar), notdirname(location.hash).Other relevant information