redirect to homepage if the url is invalid. fixed #33