-
Notifications
You must be signed in to change notification settings - Fork 10.4k
[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
github-actions
wants to merge
10
commits into
release/10.0-preview6
Choose a base branch
from
backport/pr-62358-to-release/10.0-preview6
base: release/10.0-preview6
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[release/10.0-preview6] Flip switch for controlling navigation flow on SSR #62377
github-actions
wants to merge
10
commits into
release/10.0-preview6
from
backport/pr-62358-to-release/10.0-preview6
+14
−12
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lewing
approved these changes
Jun 17, 2025
CI failures will be fixed with #62369. |
Failures are random and at each attempt a different test fails.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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?
We introduced it with #61306 that was fixing the SSR navigation.
Risk
It's just changing the default behavior to the one from before the fix.
Verification
Packaging changes reviewed?