useResolvedPath

external fun useResolvedPath(to: To, options: UseResolvedPathOptions = definedExternally): Path(source)

Resolves the pathname of the given to value against the current location.

See also

https

://reactrouter.com/v6/hooks/use-resolved-path