Bug Description
Navigating to any page other than the home page (e.g. Settings) works fine
when reached by clicking links inside the app. However, refreshing the
browser while on that route, or opening that URL directly/in a new tab,
returns GitHub Pages' native 404 page instead of loading the app -and it
does not redirect back to the home page either.
This is likely because the app uses client-side routing (react-router-dom),
but GitHub Pages has no rewrite rule to fall back to index.html for unknown
paths, so direct requests to non-root routes 404 at the hosting level before
React Router ever gets a chance to handle them.
Steps to Reproduce
- Go to https://orgexplorer.aossie.org/
- Click through to the Settings page (or any non-home page)
- Refresh the browser (F5), or copy the current URL and open it in a new tab
- Observe GitHub Pages' 404 "File not found" page instead of the app
Logs and Screenshots
Environment Details
- OS: Windows 11
- Browser: Chrome 120
- Node.js: v24.13.0
Impact
Medium - Feature works but has issues
Code of Conduct
Bug Description
Navigating to any page other than the home page (e.g. Settings) works fine
when reached by clicking links inside the app. However, refreshing the
browser while on that route, or opening that URL directly/in a new tab,
returns GitHub Pages' native 404 page instead of loading the app -and it
does not redirect back to the home page either.
This is likely because the app uses client-side routing (react-router-dom),
but GitHub Pages has no rewrite rule to fall back to index.html for unknown
paths, so direct requests to non-root routes 404 at the hosting level before
React Router ever gets a chance to handle them.
Steps to Reproduce
Logs and Screenshots
Environment Details
Impact
Medium - Feature works but has issues
Code of Conduct