Skip to content

fix: Propagate forceInstantiation and recreateLayoutChain flags through forward/reroute (#23848) (CP: 24.10) (#23955) (CP: 24.9)#23962

Merged
vaadin-bot merged 1 commit into24.9from
cherry-pick-23955-to-24.9-1774008994240
Mar 20, 2026
Merged

fix: Propagate forceInstantiation and recreateLayoutChain flags through forward/reroute (#23848) (CP: 24.10) (#23955) (CP: 24.9)#23962
vaadin-bot merged 1 commit into24.9from
cherry-pick-23955-to-24.9-1774008994240

Conversation

@vaadin-bot
Copy link
Collaborator

This PR cherry-picks changes from the original PR #23955 to branch 24.9.

Original PR description

When refreshCurrentRoute(true) triggers a BeforeEnterObserver that calls forwardTo() or rerouteTo(), the forceInstantiation and recreateLayoutChain flags were lost because the redirect navigation events were created without them. This caused the redirect target to reuse existing component instances instead of creating new ones.

Propagate the flags in three locations:

  • AbstractNavigationStateRenderer.getNavigationEvent() for both normal and error redirect paths
  • InternalRedirectHandler.handle() for internal redirects

Fixes #20988

…gh forward/reroute (#23848) (#23955)

When refreshCurrentRoute(true) triggers a BeforeEnterObserver that calls
forwardTo() or rerouteTo(), the forceInstantiation and recreateLayoutChain
flags were lost because the redirect navigation events were created without
them. This caused the redirect target to reuse existing component instances
instead of creating new ones.

Propagate the flags in three locations:
- AbstractNavigationStateRenderer.getNavigationEvent() for both normal and
  error redirect paths
- InternalRedirectHandler.handle() for internal redirects

Fixes #20988

Co-authored-by: Artur Signell <artur@vaadin.com>
@vaadin-bot
Copy link
Collaborator Author

This PR is eligible for auto-merging policy, so it has been approved automatically. If there are pending conditions, auto merge (with 'squash' method) has been enabled for this PR [Message is sent from bot]

@vaadin-bot vaadin-bot enabled auto-merge (squash) March 20, 2026 12:21
@vaadin-bot
Copy link
Collaborator Author

This PR is eligible for auto-merging policy, so it has been approved automatically. If there are pending conditions, auto merge (with 'squash' method) has been enabled for this PR[Message is sent from bot]

@sonarqubecloud
Copy link

@github-actions
Copy link

Test Results

1 287 files  +1  1 287 suites  +1   1h 13m 43s ⏱️ - 4m 8s
8 828 tests +6  8 765 ✅ +6  63 💤 ±0  0 ❌ ±0 
9 167 runs  +4  9 099 ✅ +6  68 💤  - 2  0 ❌ ±0 

Results for commit fe2b06c. ± Comparison against base commit 963a7f8.

@vaadin-bot vaadin-bot merged commit 9c98fbc into 24.9 Mar 20, 2026
28 of 29 checks passed
@vaadin-bot vaadin-bot deleted the cherry-pick-23955-to-24.9-1774008994240 branch March 20, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants