azavea / fb-gender-survey-dashboard

Interactive exploration of global results from the Facebook "Survey on Gender Equality At Home
https://gender-survey-dashboard.netlify.app/
Apache License 2.0
2 stars 2 forks source link

Add Netlify rewrite directive #44

Closed mmcfarland closed 3 years ago

mmcfarland commented 3 years ago

Overview

When deployed, URLs should simply load the root index file and use pushState to keep URLs intact. The application will then handle routing locally.

Connects #43

Notes

Rather than add a redirect for any route to /, I added a redirect instead. This way, if we do add routes that we want to preserve (for example, the saved state route), the app can continue to serve it. In practice, the main pages each check for the existence of state they need to operate, and redirect to / internally.

Testing Instructions

mmcfarland commented 3 years ago

Good call, add #46 to track the 404 issue.