Currently with HashRouter being used, Google bot won't actually crawl these pages. Possible ways of improvements is:
- Pre-Rendering into Static HTML Files
Using BrowserRouter instead of HashRouter.
- GitHub pages has issues running with
BrowserRouter out of the box as https://harrypotterspells.github.io/downloads will go the gh-pages server, the server will see there is no downloads project and return a 404
- With some configuration, can use a trick to teach GitHub Pages to handle 404s by redirecting to
index.html with a custom redirect parameter as shown here
- Static Rendering
Currently with
HashRouterbeing used, Google bot won't actually crawl these pages. Possible ways of improvements is:Such as React snapUsingBrowserRouterinstead ofHashRouter.BrowserRouterout of the box as https://harrypotterspells.github.io/downloads will go the gh-pages server, the server will see there is nodownloadsproject and return a 404index.htmlwith a custom redirect parameter as shown here