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
I had a similar issue, and found it was the way I was Handling my Routing. I was using <BrowserRouter> on my root index.js file but GitHub Pages does not support browser history like your browser does. I switched my routing to <HashRouter> this type of router uses the hash portion of the URL to keep the UI in sync with the URL.
In case you are still facing this issue, you may want to employ one of the two workarounds I listed in #104 (comment). One is to, as @israelmrios mentioned, switch back to <HashRouter>. The other involves continuing to use <BrowserRouter>, but only after employing the "trick" described here: https://github.com/rafgraph/spa-github-pages.
gitname
changed the title
Browser router gives Page not found
GitHub Pages shows 404 page when navigating via BrowserRouterAug 6, 2022
gitname
changed the title
GitHub Pages shows 404 page when navigating via BrowserRouter
GitHub Pages shows 404 error when navigating via BrowserRouterAug 6, 2022
I have been using react app with gh pages using HashRouter.
Now I updated to Browserrouter.
Now the inital load everything is fine but reloading in and internal link returns Page not found
Some innner pages alse return page not found
suppose
site.com/about/me will show if I go there from site.com/
but on reload t shows page not found
check https://qnxdev.github.io/vjcbuild/
The text was updated successfully, but these errors were encountered: