Fixes the 404 error when going directly to a route.