File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1022,7 +1022,7 @@ export function createRouter(options: RouterOptions): Router {
10221022 const shouldRedirect = handleRedirectRecord ( toLocation )
10231023 if ( shouldRedirect ) {
10241024 pushWithRedirect (
1025- assign ( shouldRedirect , { replace : true } ) ,
1025+ assign ( shouldRedirect , { replace : true , force : true } ) ,
10261026 toLocation
10271027 ) . catch ( noop )
10281028 return
@@ -1063,7 +1063,9 @@ export function createRouter(options: RouterOptions): Router {
10631063 // the error is already handled by router.push we just want to avoid
10641064 // logging the error
10651065 pushWithRedirect (
1066- ( error as NavigationRedirectError ) . to ,
1066+ assign ( locationAsObject ( ( error as NavigationRedirectError ) . to ) , {
1067+ force : true ,
1068+ } ) ,
10671069 toLocation
10681070 // avoid an uncaught rejection, let push call triggerError
10691071 )
You can’t perform that action at this time.
0 commit comments