Redirect to homepage when hash is invalid