We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0eaabe0 commit e33a47eCopy full SHA for e33a47e
src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/Client/Shared/RedirectToLogin.razor
@@ -1,8 +1,9 @@
1
-@inject NavigationManager Navigation
+@using Microsoft.AspNetCore.Components.WebAssembly.Authentication
2
+@inject NavigationManager Navigation
3
4
@code {
5
protected override void OnInitialized()
6
{
- Navigation.NavigateTo($"authentication/login?returnUrl={Uri.EscapeDataString(Navigation.Uri)}");
7
+ Navigation.NavigateToLogin("authentication/login");
8
}
9
0 commit comments