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

Handle URL paths on Netlify deployed site #43

Closed mmcfarland closed 3 years ago

mmcfarland commented 3 years ago

Overview

In development, the app has code that checks if the page is loaded at a route other than root and redirects if so. This is useful when refreshing the page on the question or visualization page. However, when deployed on Netlify, this causes a 404 error. Modify the Netlify config to allow 404s to redirect to root.

Demo

image

mmcfarland commented 3 years ago

Shares a point with #14