From 839983fc79b8a56268b298abbfb928d1bf689f3b Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Mon, 24 Feb 2025 09:21:22 -0500 Subject: [PATCH 1/2] `NavigateTo` no longer scrolls to the top --- aspnetcore/release-notes/aspnetcore-10/includes/blazor.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/aspnetcore/release-notes/aspnetcore-10/includes/blazor.md b/aspnetcore/release-notes/aspnetcore-10/includes/blazor.md index 789a8b787f40..acc15719ad91 100644 --- a/aspnetcore/release-notes/aspnetcore-10/includes/blazor.md +++ b/aspnetcore/release-notes/aspnetcore-10/includes/blazor.md @@ -29,3 +29,11 @@ For more information, see the following resources: The [`[Route]` attribute](xref:Microsoft.AspNetCore.Components.RouteAttribute) now supports route syntax highlighting to help visualize the structure of the route template: ![Route template pattern for the Order ID is highlighted in a method that maps endpoints](~/release-notes/aspnetcore-10/_static/route-template-highlighting.png) + + From 93d8bb044e939aefae404ca99f10853d87617fd3 Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Mon, 24 Feb 2025 09:30:35 -0500 Subject: [PATCH 2/2] Updates --- aspnetcore/release-notes/aspnetcore-10/includes/blazor.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/release-notes/aspnetcore-10/includes/blazor.md b/aspnetcore/release-notes/aspnetcore-10/includes/blazor.md index acc15719ad91..973820914614 100644 --- a/aspnetcore/release-notes/aspnetcore-10/includes/blazor.md +++ b/aspnetcore/release-notes/aspnetcore-10/includes/blazor.md @@ -34,6 +34,6 @@ The [`[Route]` attribute](xref:Microsoft.AspNetCore.Components.RouteAttribute) n ### `NavigateTo` no longer scrolls to the top for same-page navigations -Previously, scrolled to the top of the page for same-page navigations. This behavior has been changed in .NET 10 so that the browser no longer scrolls to the top of the page when navigating to the same page. This means the viewport no longer is reset when making updates to the address for the current page, such as changing the query string or fragment. +Previously, scrolled to the top of the page for same-page navigations. This behavior has been changed in .NET 10 so that the browser no longer scrolls to the top of the page when navigating to the same page. This means the viewport is no longer reset when making updates to the address for the current page, such as changing the query string or fragment. -->