Returns a resolved path object relative to the given pathname.
://reactrouter.com/v6/utils/resolve-path