Skip to content

Merging internal commits for release/10.0.1xx - #10186

Merged
vseanreesermsft merged 229 commits into
release/10.0.1xxfrom
internal-merge-10.0.1xx-2026-10-13-2152
Oct 20, 2026
Merged

vseanreesermsft merged 229 commits into
release/10.0.1xxfrom
internal-merge-10.0.1xx-2026-10-13-2152

Conversation

@dotnet-release-bot

Copy link
Copy Markdown
Contributor

No description provided.

ilonatommy and others added 30 commits May 21, 2026 13:00
… <RouteView>, so that t goes through the same path as other pages.
…lusions

This PR was created by the `CreateBaselineUpdatePR` tool for build 3045576. 

The updated test results can be found at https://dev.azure.com/dnceng/internal/_build/results?buildId=3045576 (internal Microsoft link)
…mplate

Follow up for https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet/pullrequest/61324  which fixed the same issue for Router.NotFoundPage.

Setting not found page via NotFoundEventArgs.Path was added in dotnet/aspnetcore#62798.

Apps can subscribe to NavigationManager.OnNotFound and route the not-found render to an arbitrary component by setting args.Path:
 
  NavigationManager.OnNotFound += (sender, args) =>
  {
      args.Path = "/my-not-found-page"; 
  };

 When this fires, Router.OnNotFound takes the args.Path branch and calls RenderComponentByRoute. Previously this method instantiated <RouteView> directly, bypassing the user's <Found> template  (<AuthorizeRouteView>, custom layouts, and any other wrappers configured inside <Found> were not applied).

Fix:
Instead of "manual" rendering setup, use <Found> in RenderNotFound. This unifies how every rendered route in the Router flows through the <Found> template.

Tested:
- unit test, passing locally.
- E2E test, passing locally.
- Manual tests of Component.TestServer app with the change.
@vseanreesermsft
vseanreesermsft merged commit 151264a into release/10.0.1xx Oct 20, 2026
11 checks passed
@vseanreesermsft
vseanreesermsft deleted the internal-merge-10.0.1xx-2026-10-13-2152 branch October 20, 2026 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.