fix edit redirect url