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

vitejs treats *.html path as path to system files #10717

Closed
7 tasks done
tachibana-shin opened this issue Oct 30, 2022 · 1 comment
Closed
7 tasks done

vitejs treats *.html path as path to system files #10717

tachibana-shin opened this issue Oct 30, 2022 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@tachibana-shin
Copy link

tachibana-shin commented Oct 30, 2022

Describe the bug

This is not necessarily an error. I am using vitejs and vue-router. i have a router like this /anime/:name.html when i go to locahost:9000/anime/oregiru.html vitejs processes this path and tries to find the file /anime/oregiru.html in my system
I want to somehow exclude my routers so that vitejs don't process them or disable vitejs' html resolution (except index.html)

Reproduction

https://stackblitz.com/edit/vitejs-vite-8bq1hk?file=src%2FApp.vue

Steps to reproduce

  1. Wait Stackbliz...
  2. Click to Oregairu in preview

System Info

Stackbliz

Used Package Manager

npm

Logs

No response

Validations

@sapphi-red
Copy link
Member

Duplicate of #2415

@sapphi-red sapphi-red marked this as a duplicate of #2415 Oct 30, 2022
@sapphi-red sapphi-red closed this as not planned Won't fix, can't repro, duplicate, stale Oct 30, 2022
@sapphi-red sapphi-red added duplicate This issue or pull request already exists and removed pending triage labels Oct 30, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Nov 14, 2022
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
Projects
None yet
Development

No branches or pull requests

2 participants