fix url path on redirect