updates redirect url