17 lines
341 B
Plaintext
17 lines
341 B
Plaintext
@inject NavigationManager NavigationManager
|
|
|
|
@code {
|
|
protected override void OnInitialized()
|
|
{
|
|
try
|
|
{
|
|
NavigationManager.NavigateTo(Routes.Index);
|
|
}
|
|
catch
|
|
{
|
|
// ignored, see https://github.com/dotnet/aspnetcore/issues/53996
|
|
}
|
|
base.OnInitialized();
|
|
}
|
|
}
|