preactjs / preact-router

:earth_americas: URL router for Preact.
http://npm.im/preact-router
MIT License
1.01k stars 156 forks source link

preact-router not resolving route with params after refresh #462

Closed espinosakev24 closed 11 months ago

espinosakev24 commented 1 year ago

I'm having this issue when I refresh the page and the route is using parameters: image

When I navigate to TestPage, it works as expected, but after refresh it throws: GET http://localhost:5173/test/src/index.jsx net::ERR_ABORTED 404 (Not Found)

I'm using vite, no special config, just:

image

vite@4.4.9 preact-router@4.1.2 preact@10.17.0

rschristian commented 1 year ago

I can't reproduce this: https://stackblitz.com/edit/vitejs-vite-deqijd?file=src%2Fmain.jsx