preactjs / preact-router

:earth_americas: URL router for Preact.

Home Page:http://npm.im/preact-router

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

preact-router not resolving route with params after refresh

espinosakev24 opened this issue · comments

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