[5.0 beta] http://
urls in index.html are rewritten on non-index pages
#14770
Labels
p4-important
Violate documented behavior or significantly improves performance (priority)
regression
The issue only appears after a new release
Describe the bug
I found that after 5.0.0-beta.7, I got an error on my pages:
Note the funky URL. This was transformed from my index.html link:
I narrowed it down to #14591 as the cause, but it only happens on pages that are not
/
, due to the check fororiginalUrl
.Reproduction
https://github.com/IanVS/reproduction-vite-href-rewrite
Steps to reproduce
Clone the repo, install the deps, fire up vite in dev, open the page, should redirect automatically to
/page
, and check the console log and the page source to see the problems.System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: