Fix redirect url issue.