Test Steps: Access a non-root route (eg. https://mendisphere-test.web.app/organisations )
Actual Behavior: Firebase 404 error returns.
Expected Behavior: Go to organisation listing page.
Investigation:
This is because on React's first render, we only get the index.html which points to root route ( https://mendisphere-test.web.app ). JS only loads after that, which provides the Client-side react-router-dom to access non-root routes like ( /organisations/ ).
Test Steps: Access a non-root route (eg. https://mendisphere-test.web.app/organisations ) Actual Behavior: Firebase 404 error returns. Expected Behavior: Go to organisation listing page.
Investigation:
react-router-dom
to access non-root routes like ( /organisations/ ).Actions Required: