You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Bug does still occur when all/other plugins are disabled?
Docsify version: 4.11.6
The text was updated successfully, but these errors were encountered:
jhildenbiddle
changed the title
Unable to user absolute path as coverpage URL
Unable to use absolute path for coverpage, loadNavbar, or loadSidebar options
Oct 25, 2020
Bug Report
Steps to reproduce
Set
coverpage
,loadNavbar
, orloadSidebar
options to an absolute URL and load site. For example:coverpage: '/docs/_coverpage.md'
coverpage: 'http://domain.com/_coverpage.md'
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:docsify/src/core/fetch/index.js
Line 163 in 8cf9fd8
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
Bug does still occur when all/other plugins are disabled?
Docsify version: 4.11.6
The text was updated successfully, but these errors were encountered: