Updates to redirect to the homepage in case of 404 errors