digitalcredentials / sandbox

DCC developer playground
https://digitalcredentials.github.io/sandbox/
MIT License
5 stars 5 forks source link

Github pages routing problem #46

Closed fields37 closed 1 year ago

fields37 commented 1 year ago

Currently, navigating to a subdomain on the github pages / create-react-app hosted page throws a 404 error, as noted here. There are two options to deal with this, as noted in the previous link:

  1. Switch react-router to use HashHistory. This will make urls a bit uglier.
  2. Use this solution to intercept 404 requests and reroute them back to index.html

@dmitrizagidulin do you have a preference for solution?

fields37 commented 1 year ago

Resolved in #55