aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

[release/10.0-preview6] Flip switch for controlling navigation flow on SSR

Open github-actions[bot] opened this issue 5 months ago • 1 comments

Backport of #62358 and partial #62369 (fixing CI) to release/10.0-preview6

/cc @ilonatommy

Flip switch for controlling navigation flow on SSR

Flips the App switch for controlling the navigation flow on SSR.

Description

Switch was introduced in https://github.com/dotnet/aspnetcore/pull/61306. The PR unifies the navigation across render modes but also allows SSR code after the navigation to run. Upgrading the application could lead to unexpected behaviors, e.g. see how templates had to be changed to adjust to the new navigation: https://github.com/dotnet/aspnetcore/pull/62105. From this reason, we decided to keep the default behavior for the exception flow. It can be changed by setting Microsoft.AspNetCore.Components.Endpoints.NavigationManager.DisableThrowNavigationException switch. New projects will use the new way of working.

Partial backport of https://github.com/dotnet/aspnetcore/pull/62369 fixes the tests that are failing on p6 branch. It was introduced in https://github.com/dotnet/aspnetcore/pull/62045. The CI was green but inside, the non-quaratined test silently failed log.

Customer Impact

It will keep the behavior same as net9, without the need to change code if users upgrade to net10.

The partial backport changes only test to let this PR merge. Tell mode.

Regression?

  • [X] Yes
  • [ ] No

We introduced it with https://github.com/dotnet/aspnetcore/pull/61306 that was fixing the SSR navigation.

Risk

  • [ ] High
  • [ ] Medium
  • [X] Low

It's just changing the default behavior to the one from before the fix.

Verification

  • [X] Manual (required)
  • [X] Automated

Packaging changes reviewed?

  • [ ] Yes
  • [ ] No
  • [X] N/A

github-actions[bot] avatar Jun 17 '25 13:06 github-actions[bot]