Updates an outdated pathname.