sugaroverflow / drone-companion-app

collaboration project between Code for Canada + Transport Canada
MIT License
1 stars 3 forks source link

Routing issue on server #212

Open sugaroverflow opened 5 years ago

sugaroverflow commented 5 years ago

Task Description

Refreshing a page on the server leads to a GET / error. This likely happens because the instance of React Router only works on the landing page and not on subsequent routes - because they're being served by SSR.

Technical Criteria

There are a couple of ways to solve this, but the simplest at this time would be a hybrid approach - and to load the React Router on all Not Found pages - by setting up a index.html redirect.

Acceptance Criteria