--- title: resolvePath --- # resolvePath [MODES: framework, data, declarative] ## Summary [Reference Documentation ↗](https://api.reactrouter.com/v7/functions/react_router.resolvePath.html) Returns a resolved path object relative to the given pathname. ## Signature ```tsx resolvePath(to, fromPathname): Path ``` ## Params ### to [modes: framework, data, declarative] _No documentation_ ### fromPathname [modes: framework, data, declarative] _No documentation_