Docsify should not assume all URLs should be prepended with a forward slash. More investigation is needed to determine why docsify is concatenating root + path in the source (see above).
Other relevant information
[x] Bug does still occur when all/other plugins are disabled?
Bug Report
Steps to reproduce
Set
coverpage
,loadNavbar
, orloadSidebar
options to an absolute URL and load site. For example:What is current behaviour
Docisfy incorrectly assumes all URLs should be prepended with a forward slash resulting in the following:
coverpage: '/docs/_coverpage.md'
makes a request for//docs/_coverpage.md
coverpage: 'http://domain.com/_coverpage.md'
makes a request for/http://domain.com/_coverpage.md
For
coverpage
, I was able to identify the line causing the issue here:https://github.com/docsifyjs/docsify/blob/8cf9fd8150bd67709c68d8dfe4dc881624583ac8/src/core/fetch/index.js#L163
What is the expected behaviour
Docsify should not assume all URLs should be prepended with a forward slash. More investigation is needed to determine why docsify is concatenating
root + path
in the source (see above).Other relevant information
[x] Bug does still occur when all/other plugins are disabled?
Docsify version: 4.11.6