Fix redirect url issue