Bug Report
Steps to reproduce
Set these lines in index.html
window.$docsify = {
//...
loadSidebar: true,
routerMode: 'history',
coverpage: true,
onlyCover: true,
Then use any other doman URLs in _coverpage file, See below...
<a href="proxy.php?url=https%3A%2F%2Frstudio.com%2Fauth-sign-in">Login</a><br />
What is the current behavior
when clicking on the link on the cover page there is no response, while checking the browser console getting the following error.
Uncaught DOMException: Failed to execute 'pushState' on 'History': A history state object with URL 'https://rstudio.com/auth-sign-in' cannot be created in a document with origin 'https://datatools.inhouse.com' and URL 'https://datatools.inhouse.com/'.
at https://cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js:1:93866
What is the expected behavior
Redirect to the mentioned web page directly.
Other relevant information
- search.min.js
- docsify-plugin-flexible-alerts
- mermaid.js
Mentioned index.html and _coverpage files are in the below repository. Please check it.
Git repo
Mention the docsify version in which this bug was not present (if any)
Bug Report
Steps to reproduce
Set these lines in index.html
Then use any other doman URLs in _coverpage file, See below...
<a href="proxy.php?url=https%3A%2F%2Frstudio.com%2Fauth-sign-in">Login</a><br />What is the current behavior
when clicking on the link on the cover page there is no response, while checking the browser console getting the following error.
Uncaught DOMException: Failed to execute 'pushState' on 'History': A history state object with URL 'https://rstudio.com/auth-sign-in' cannot be created in a document with origin 'https://datatools.inhouse.com' and URL 'https://datatools.inhouse.com/'.
at https://cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js:1:93866
What is the expected behavior
Redirect to the mentioned web page directly.
Other relevant information
Bug does still occur when all/other plugins are disabled?
Your OS:
Using the docsify index.html file in an apache container, the apache server serves the web site.
Docsify version:
Using "src="proxy.php?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fnpm%2Fdocsify%2Flib%2Fdocsify.min.js" " in the index page. I believe this will use the latest version of docsify.
Have you seen this issue with other docsify projects?
Yes, see A cross-origin url cannot be redirected to if "externalLinkTarget" is set to "_self" and "routerMode" is set to "history" #1046 @Koooooo-7 @anikethsaha
Docsify plugins:
Mentioned
index.htmland_coverpagefiles are in the below repository. Please check it.Git repo
Mention the docsify version in which this bug was not present (if any)