We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rewrite rule doesn't work correctly when create new markdown file.
rewrite
1, Set rewrite
// vitepress/config.js rewrite: [`en/:rest*`]: ':rest*'
2, Create new markdown file docs/en/test.md
docs/en/test.md
3, Expect visit file by url /test, but it redirect to /en/test.
/test
/en/test
4, Restart dev server, problem resolved.
Expect rewrite rule work correctly when create new markdown file.
vitepress: 1.5.0
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
rewrite
rule doesn't work correctly when create new markdown file.Reproduction
1, Set
rewrite
2, Create new markdown file
docs/en/test.md
3, Expect visit file by url
/test
, but it redirect to/en/test
.4, Restart dev server, problem resolved.
Expected behavior
Expect
rewrite
rule work correctly when create new markdown file.System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: