-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
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
Comments
Artur-
added a commit
to Artur-/vite
that referenced
this issue
Nov 12, 2021
Artur-
added a commit
to Artur-/vite
that referenced
this issue
Nov 12, 2021
9 tasks
patak-dev
added
p3-minor-bug
An edge case that only affects very specific usage (priority)
and removed
pending triage
labels
May 12, 2022
7 tasks
7 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:/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: