Skip to content

Dots in URL lead to 404 (regression?) #2415

@Deckluhm

Description

@Deckluhm

⚠️ IMPORTANT ⚠️ Please do not ignore this template. If you do, your issue will be closed immediately.

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions