I have configured Vercel's Clean URL feature, but it doesn't seem to work with VitePress. Despite the Clean URL setting, my navigation links still include .html extensions, which causes unnecessary redirects. Below is my nav configuration:
Even with this configuration, VitePress still appends .html to the links in the generated pages. Is this an issue with my setup, or a bug in VitePress?
Reproduction
Deploy a VitePress site on Vercel.
Enable Vercel's Clean URL feature.
Configure the VitePress nav with standard links (as shown above).
Observe the .html still present in the navigation links and the redirects happening when accessing URLs without .html.
Expected behavior
When using Vercel's Clean URL feature, the .html extension should be omitted from both the navigation links and the actual URLs served by VitePress, without triggering redirects.
System Info
Vercel: Clean URLs enabled
VitePress: 1.3.4
Browser: Google Chrome 127.0.6533.100
Operating System: Windows
Describe the bug
I have configured Vercel's Clean URL feature, but it doesn't seem to work with VitePress. Despite the Clean URL setting, my navigation links still include .html extensions, which causes unnecessary redirects. Below is my nav configuration:
Even with this configuration, VitePress still appends .html to the links in the generated pages. Is this an issue with my setup, or a bug in VitePress?
Reproduction
Expected behavior
When using Vercel's Clean URL feature, the .html extension should be omitted from both the navigation links and the actual URLs served by VitePress, without triggering redirects.
System Info
Additional context
No response
Validations