Skip to content

Commit fc50400

Browse files
authored
NavigateTo no longer scrolls to the top (#34791)
1 parent 99fb29f commit fc50400

File tree

1 file changed

+8
-0
lines changed
  • aspnetcore/release-notes/aspnetcore-10/includes

1 file changed

+8
-0
lines changed

aspnetcore/release-notes/aspnetcore-10/includes/blazor.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,11 @@ For more information, see the following resources:
2929
The [`[Route]` attribute](xref:Microsoft.AspNetCore.Components.RouteAttribute) now supports route syntax highlighting to help visualize the structure of the route template:
3030

3131
![Route template pattern for the Order ID is highlighted in a method that maps endpoints](~/release-notes/aspnetcore-10/_static/route-template-highlighting.png)
32+
33+
<!-- PREVIEW 2
34+
35+
### `NavigateTo` no longer scrolls to the top for same-page navigations
36+
37+
Previously, <xref:Microsoft.AspNetCore.Components.NavigationManager.NavigateTo%2A?displayProperty=nameWithType> 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.
38+
39+
-->

0 commit comments

Comments
 (0)