Skip to content

Commit

Permalink
fix: forwarding without callback
Browse files Browse the repository at this point in the history
  • Loading branch information
tepi committed Sep 16, 2024
1 parent 2c25b82 commit 0a5dbad
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -744,13 +744,10 @@ private int forward(NavigationEvent event, BeforeEvent beforeNavigation) {
.getParentLayouts(event.getUI().getRouter().getRegistry(),
forwardTargetType, beforeNavigation.getForwardUrl());

boolean preserveOnRefreshTarget = isPreserveOnRefreshTarget(
forwardTargetType, parentLayouts);

NavigationEvent newNavigationEvent = getNavigationEvent(event,
beforeNavigation);
newNavigationEvent.getUI().getPage().getHistory().replaceState(null,
newNavigationEvent.getLocation(), !preserveOnRefreshTarget);
newNavigationEvent.getLocation(), false);

return handler.handle(newNavigationEvent);
}
Expand Down

0 comments on commit 0a5dbad

Please sign in to comment.