When running grunt server, we add middleware to redirect to the first menu item. When exporting to gh-pages or generally an export, we need to redirect a user to the correct index page. This should be done through JavaScript (I know) so it's compatible even if a user doesn't have control of server-side redirect (like in the case of gh-pages
When running
grunt server
, we add middleware to redirect to the first menu item. When exporting togh-pages
or generally an export, we need to redirect a user to the correct index page. This should be done through JavaScript (I know) so it's compatible even if a user doesn't have control of server-side redirect (like in the case ofgh-pages