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
[ERROR] ValidationError: "redirects[1].to" is not a valid pathname. Pathname should start with slash and not contain any domain or query string.
Your environment
Docusaurus version used: 2.4.0
Environment name and version (e.g. Chrome 89, Node.js 16.4): Chrome 112.0.5615.121
Operating system and version (e.g. Ubuntu 20.04.2 LTS): OS X 13.3.1
Self-service
I'd be willing to fix this bug myself.
The text was updated successfully, but these errors were encountered:
alewolf
added
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
labels
Apr 23, 2023
Josh-Cena
added
closed: duplicate
This issue or pull request already exists in another issue or pull request
and removed
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
labels
Apr 23, 2023
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
The following configuration will throw an error during the build.
[ERROR] ValidationError: "redirects[1].to" is not a valid pathname. Pathname should start with slash and not contain any domain or query string.
In my opinion anchors should be allowed.
Reproducible demo
No response
Steps to reproduce
Paste this redirect configuration into docusaurus.config.js
Expected behavior
The build should accept
to
links with anchors.Actual behavior
The following error is thrown:
[ERROR] ValidationError: "redirects[1].to" is not a valid pathname. Pathname should start with slash and not contain any domain or query string.
Your environment
Self-service
The text was updated successfully, but these errors were encountered: