IHasNavigationManagerNavigationManager Property

Dependency injected NavigationManager for navigating to different pages.
Note: in Blazor, navigation is done in a 'fake' manner so the entire page doesn't need to be reloaded.
If you want to make sure the page is reloaded, or if we're going somewhere outside the Blazor context,
ensure you set the parameter 'forceLoad' in method NavigateTo(String, Boolean, Boolean) to true.

Definition

Namespace: MobileTrack.Web.Components.Interfaces
Assembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
NavigationManager NavigationManager { get; set; }

Property Value

NavigationManager

Example

C#
NavigationManager.NavigateTo($"/portal/{CurrentCompany.Id}/help", forceLoad: true);

See Also