@inject NavigationManager NavigationManager

@code
{
    protected override async Task OnInitializedAsync()
    {
        NavigationManager.NavigateTo("/login");
        await base.OnInitializedAsync();
    }
}
