You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the dev server, when a route shares the exact same string as a folder within the public directory, a combination of vite dev server, h3, and send libraries check the public subfolder paths and on discovering a matching string and that it is a folder, then does a 301 redirect with a trailing slash. It never hits nitro until after the redirect occurs.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
https://stackblitz.com/edit/github-sh3gjl
To see the redirect, you need to open the preview in its own browser window.
Local instructions:
npx nuxi@latest init public-error cd public-error npm run dev
Visit http://localhost:3000
Open DevTools and enable routing
Visit http://localhost:3000/test
301 redirect to
/test/
Describe the bug
When using the dev server, when a route shares the exact same string as a folder within the public directory, a combination of
vite dev server
,h3
, andsend
libraries check thepublic
subfolder paths and on discovering a matching string and that it is a folder, then does a 301 redirect with a trailing slash. It never hitsnitro
until after the redirect occurs.Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: