update url replace process in publish