MatthewNobes / MatthewNobes.github.io

This is my personal portfolio website that I use to showcase and explain my projects. It has been rebuilt with React, using React router for its navigation system and uses GitHub's Rest API to collect project information.
https://matthewnobes.github.io/
MIT License
2 stars 0 forks source link

Fix react router backpage bug #28

Closed MatthewNobes closed 2 years ago

MatthewNobes commented 2 years ago

When going back to a previous react-router page, the application seems to get stuck and displays the error 404 page, this should be fixed.

MatthewNobes commented 2 years ago

The same also happens on page refresh

MatthewNobes commented 2 years ago

Further details on the fix can be found here: https://reginafurness.medium.com/client-side-routing-on-github-pages-with-create-react-app-f5a393341c2 With the code for this coming from the index.html and 404.html of this repo: https://github.com/rafgraph/spa-github-pages

MatthewNobes commented 2 years ago

Patched