Fix redirection urls.