Substitute path for deprecated pattern