-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Closed
Description
- Read the docs.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
- This is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
Describe the bug
URLs with dots are leading to a 404 error instead of correctly displaying the corresponding page.
Note that it works fine with a project created with Vue CLI but it doesn't work with a project created with @vite/create-app (both using Vue 3 with Vue Router 4).
I guess this is a regression from #130 but many things have change with Vite 2 (especially project structure) so it's hard for me to identify why the bug reappeared (but with some guidance I'm happy to help).
Reproduction
- 🔴 Repro created with @vite/create-app (not working): https://github.com/Deckluhm/vite-dots-url-bug
- 🟢 Repro created with Vue CLI (working): https://github.com/Deckluhm/vue-cli-dots-url-bug
Run projects and go to http://localhost:3000/just.a.test (or a similar URL).
System Info
vite
version: 2.0.1 (with @vitejs/plugin-vue 1.1.4)- Operating System: Ubuntu 20.10
- Node version: 15.10.0
- Package manager (npm/yarn/pnpm) and version: Yarn 1.22.10
ernestoalejo, tdxius, mbence, babalubas090, vovchisko and 36 morecesargdm, silverwind, lostpebble, ikram-patah and dotspencercesargdm, silverwind, hamano, AsbjornOlling and dotspencer
Metadata
Metadata
Assignees
Labels
No labels