Share via


NavLink.RelativeToCurrentUri Property

Definition

Gets or sets whether the href should be resolved relative to the current URI. When true, relative hrefs (e.g., "sibling") are resolved against the current route's directory path and rendered as root-relative URLs (e.g., "/folder/sibling"). When false (default), the href is rendered as-is from the attribute value.

[Microsoft.AspNetCore.Components.Parameter]
public bool RelativeToCurrentUri { get; set; }
[<Microsoft.AspNetCore.Components.Parameter>]
member this.RelativeToCurrentUri : bool with get, set
Public Property RelativeToCurrentUri As Boolean

Property Value

Attributes

Applies to