Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: release/10.0-preview6
Choose a base branch
from

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jun 17, 2025

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 #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: #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 #62369 fixes the tests that are failing on p6 branch. It was introduced in #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?

  • Yes
  • No

We introduced it with #61306 that was fixing the SSR navigation.

Risk

  • High
  • Medium
  • Low

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

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

@github-actions github-actions bot requested a review from a team as a code owner June 17, 2025 13:53
@ilonatommy ilonatommy requested review from lewing and javiercn June 17, 2025 13:57
@ilonatommy ilonatommy self-assigned this Jun 17, 2025
@ilonatommy ilonatommy added the area-blazor Includes: Blazor, Razor Components label Jun 17, 2025
@ilonatommy ilonatommy added this to the 10.0-preview6 milestone Jun 17, 2025
@ilonatommy
Copy link
Member

CI failures will be fixed with #62369.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants