File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
packages/router/src/navigation-api Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -259,6 +259,10 @@ export function createNavigationApiRouter(options: RouterApiOptions): Router {
259259 }
260260
261261 function go ( delta : number ) {
262+ if ( delta === 0 && isRevertingNavigation ) {
263+ return
264+ }
265+
262266 // Case 1: go(0) should trigger a reload.
263267 if ( delta === 0 ) {
264268 window . navigation . reload ( )
@@ -718,6 +722,9 @@ export function createNavigationApiRouter(options: RouterApiOptions): Router {
718722 finalizeNavigation ( to , from )
719723 } catch ( error ) {
720724 const failure = error as NavigationFailure
725+ if ( isNavigationFailure ( failure , ErrorTypes . NAVIGATION_DUPLICATED ) ) {
726+ return
727+ }
721728
722729 isRevertingNavigation = true
723730 go ( event . from . index - window . navigation . currentEntry ! . index )
You can’t perform that action at this time.
0 commit comments