Skip to content

Commit e33a47e

Browse files
committed
Fix redirect to login
1 parent 0eaabe0 commit e33a47e

File tree

1 file changed

+3
-2
lines changed
  • src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/Client/Shared

1 file changed

+3
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
@inject NavigationManager Navigation
1+
@using Microsoft.AspNetCore.Components.WebAssembly.Authentication
2+
@inject NavigationManager Navigation
23

34
@code {
45
protected override void OnInitialized()
56
{
6-
Navigation.NavigateTo($"authentication/login?returnUrl={Uri.EscapeDataString(Navigation.Uri)}");
7+
Navigation.NavigateToLogin("authentication/login");
78
}
89
}

0 commit comments

Comments
 (0)