Table of Contents

Method UseResolvedPath

Namespace
Velvet
Assembly
Velvet.Docs.dll

UseResolvedPath(string, RelativeRoutingType)

Resolves to to an absolute pathname, search and hash as UseNavigate would navigate to it from the calling component's route: React Router's useResolvedPath.

public static ResolvedPath UseResolvedPath(string to, RelativeRoutingType relative = RelativeRoutingType.Route)

Parameters

to string

Absolute or relative target; the empty string is the calling route itself.

relative RelativeRoutingType

Whether a .. drops a route or a URL segment.

Returns

ResolvedPath

Exceptions

InvalidOperationException

No V.RouterProvider is mounted above the caller.