fix redirect url issue