When using a base path, resources should not be served without the base path #5656
Closed
7 tasks done
Labels
p3-minor-bug
An edge case that only affects very specific usage (priority)
Milestone
Describe the bug
If you use e.g.
then
curl localhost:3000/basepath/src/main.ts
should returnsrc/main.ts
butcurl localhost:3000/src/main.ts
should return 404.Right now
returns a HTML page in the browser, saying you probably meant localhost:3000/basepath/src/main.ts but if you request the resource from a script, it is happily served
Reproduction
https://github.com/Artur-/vite-vaadin-problem5
npm i
npm run dev
curl localhost:3000/src/main.ts
should return 404System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: