The allows us to redirect to the new components based on the matching path from the current components to other specified components by overriding t…