Skip to content
New issue

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 not work when create new markdown file #4385

Open
4 tasks done
chiaweilee opened this issue Nov 26, 2024 · 0 comments
Open
4 tasks done

Rewrite not work when create new markdown file #4385

chiaweilee opened this issue Nov 26, 2024 · 0 comments
Labels
bug: pending triage Maybe a bug, waiting for confirmation

Comments

@chiaweilee
Copy link

Describe the bug

rewrite rule doesn't work correctly when create new markdown file.

Reproduction

1, Set rewrite

// vitepress/config.js
rewrite: [`en/:rest*`]: ':rest*'

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

vitepress: 1.5.0

Additional context

No response

Validations

@chiaweilee chiaweilee added the bug: pending triage Maybe a bug, waiting for confirmation label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: pending triage Maybe a bug, waiting for confirmation
Projects
None yet
Development

No branches or pull requests

1 participant