Replace old path_prefix with new method.