Table of Contents

Class RouteMatch

Namespace
Velvet
Assembly
Velvet.Docs.dll

One entry in a route matching result. For nested routes, an entry is produced for each level.

public sealed class RouteMatch
Inheritance
object
RouteMatch

Properties

MatchedPath

Matched path segment string (the route's own path, trimmed). Used for display / debug.

Params

Path parameters extracted from this route segment (for example :id -> id).

PathnameBase

Resolved cumulative URL pathname from the root up to and including this route level (params substituted, always rooted with a leading /). Drives route-relative navigation: a .. removes this route's entire URL contribution — which may span multiple segments for a multi-segment route pattern — rather than a single URL segment. Defaults to / when not computed (e.g. hand-built matches).

Route

The matched route definition.

RouteId

Stable identifier for this route within the tree (the cumulative pattern path from the root, disambiguated so sibling index routes do not collide). Used as the key for loader data and errors.