Table of Contents

Method Navigate

Namespace
Velvet
Assembly
Velvet.Docs.dll

Navigate(string, bool, string?)

No element participates in layout while the active Router handles the target.

public static ComponentNode Navigate(string to, bool replace = false, string? key = null)

Parameters

to string

Absolute and route-relative targets follow UseNavigate(bool).

replace bool

When true, replaces the current history entry instead of pushing.

key string

Returns

ComponentNode

Remarks

Redirects on mount and again when to or replace changes.