pittktp / ktp-react

Migration of the current Angular 6 based website to React
2 stars 1 forks source link

Create 404 routes for non-existent pages #23

Open ZvontyFlugence opened 4 years ago

ZvontyFlugence commented 4 years ago

Currently if you try to go to a page on the site that does not exist, it will show you a blank page with just the background pattern. We need to add a catch-all route that will display that the current page doesn't exist and offer a redirect to the homepage. Additionally, since the old site used the /home route, many people may have that route bookmarked, so create a /home route that redirects to the homepage.