Update redirecttologin-component.md (#31924)

pull/31919/head
Yogi 2024-02-28 22:24:27 +05:30 committed by GitHub
parent 191b66fc0f
commit abb7b64062
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1,10 +1,10 @@
The `RedirectToLogin` component (`Shared/RedirectToLogin.razor`):
The `RedirectToLogin` component (`RedirectToLogin.razor`):
* Manages redirecting unauthorized users to the login page.
* The current URL that the user is attempting to access is maintained by so that they can be returned to that page if authentication is successful using:
* [Navigation history state](xref:blazor/fundamentals/routing#navigation-history-state) in ASP.NET Core in .NET 7 or later.
* A query string in ASP.NET Core in .NET 6 or earlier.
Inspect the `RedirectToLogin` component in [reference source](https://github.com/dotnet/aspnetcore/blob/release/7.0/src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/Client/Shared/RedirectToLogin.razor).
Inspect the `RedirectToLogin` component in [reference source](https://github.com/dotnet/aspnetcore/tree/main/src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp). The location of the component changed over time, so use GitHub search tools to locate the component.
[!INCLUDE[](~/includes/aspnetcore-repo-ref-source-links.md)]