diff --git a/aspnetcore/migration/60-70.md b/aspnetcore/migration/60-70.md index 75cb9181e950..991aff9e018d 100644 --- a/aspnetcore/migration/60-70.md +++ b/aspnetcore/migration/60-70.md @@ -82,8 +82,6 @@ To adopt all of the [new 7.0 features for Blazor apps](xref:aspnetcore-7#blazor) * Create a new 7.0 Blazor project from one of the Blazor project templates. For more information, see . * Move the app's components and code to the 7.0 app making modifications to adopt the new 7.0 features. - - ### Migrate unmarshalled JavaScript interop Unmarshalled interop using the interface is obsolete and should be replaced with JavaScript `[JSImport]`/`[JSExport]` interop. @@ -138,7 +124,7 @@ For more information, see . The support for authentication in Blazor WebAssembly apps changed to rely on [navigation history state](xref:blazor/fundamentals/routing?view=aspnetcore-7.0#navigation-history-state) instead of query strings in the URL. As a result, passing the return URL through the query string fails to redirect back to the original page after a successful login in .NET 7. -The following example demonstrates **the prior redirection approach for apps that target .NET 6 or earlier**, which is based on a redirect URL (`?returnUrl=`) with : +The following example demonstrates **the prior redirection approach for apps that target .NET 6 or earlier** in `RedirectToLogin.razor`, which is based on a redirect URL (`?returnUrl=`) with : ```razor @inject NavigationManager Navigation @@ -152,7 +138,7 @@ The following example demonstrates **the prior redirection approach for apps tha } ``` -The following example demonstrates **the new redirection approach for apps that target .NET 7 or later**, which is based on [navigation history state](xref:blazor/fundamentals/routing?view=aspnetcore-7.0#navigation-history-state) with : +The following example demonstrates **the new redirection approach for apps that target .NET 7 or later** in `RedirectToLogin.razor`, which is based on [navigation history state](xref:blazor/fundamentals/routing?view=aspnetcore-7.0#navigation-history-state) with : ```razor @inject NavigationManager Navigation @@ -186,7 +172,7 @@ The following example demonstrates **the prior approach** in `Shared/LoginDispla } ``` -The following example demonstrates **the new approach** that calls . The injection (`@inject`) of the is removed from the component's directives at the top of the file, and the `BeginLogOut` method is updated to the following code: +The following example demonstrates **the new approach** in `Shared/LoginDisplay.razor` that calls . The injection (`@inject`) of the is removed from the component's directives at the top of the file, and the `BeginLogOut` method is updated to the following code: ```razor @code{