fixing redirect url