Paratron / hookrouter

The flexible, and fast router for react that is entirely based on hooks
1.5k stars 90 forks source link

Direct navigation doesn't seem to work with GH Pages #145

Open matneyx opened 3 years ago

matneyx commented 3 years ago

Steps to reproduce: Navigate to https://matneyx.github.io/MimicsAndXorn/home

Expected result: Render the page as if you selected the Home link from https://matneyx.github.io/MimicsAndXorn/

Actual result: 404 error

useRoutes implementation is here: https://github.com/matneyx/MimicsAndXorn/blob/main/src/App.js#L19 Routes are defined here: https://github.com/matneyx/MimicsAndXorn/blob/main/src/common/NavigationProvider.js#L96

Seanmclem commented 3 years ago

I'm experiencing this issue as well. Even when using base path, the only route that works is root, aka /