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

On local dev server vite will overeagerly return 404 if there is just one path fragment and it contains a period #3012

Closed
6 tasks done
tstriker opened this issue Apr 16, 2021 · 1 comment
Labels
duplicate This issue or pull request already exists pending triage

Comments

@tstriker
Copy link

tstriker commented Apr 16, 2021

Describe the bug

On local dev server vite will overeagerly return 404 if there is just one path fragment and it contains a period, e.g. "/example.com". I'm guessing that this is because of the path parsing logic deciding that the fragment looks like something that should be served by the filesystem.

Reproduction

  • Try accessing /examplecom on the vanilla dev server - things work as expected, the path is intercepted and passed to the browser (no effect)
  • Now try accessing /example.com - you'll get a 404

Note that adding a trailing slash /example.com/ will once again work.

Before submitting the issue, please make sure you do the following

@anncwb
Copy link
Contributor

anncwb commented Apr 16, 2021

Closing as duplicate of #2415

@anncwb anncwb closed this as completed Apr 16, 2021
@Shinigami92 Shinigami92 added the duplicate This issue or pull request already exists label Apr 16, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists pending triage
Projects
None yet
Development

No branches or pull requests

3 participants