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 @@ -978,7 +978,7 @@ export function createRouter(options: RouterOptions): Router {
978978 const shouldRedirect = handleRedirectRecord ( toLocation )
979979 if ( shouldRedirect ) {
980980 pushWithRedirect (
981- assign ( shouldRedirect , { replace : true } ) ,
981+ assign ( shouldRedirect , { replace : true , force : true } ) ,
982982 toLocation
983983 ) . catch ( noop )
984984 return
@@ -1019,7 +1019,9 @@ export function createRouter(options: RouterOptions): Router {
10191019 // the error is already handled by router.push we just want to avoid
10201020 // logging the error
10211021 pushWithRedirect (
1022- ( error as NavigationRedirectError ) . to ,
1022+ assign ( locationAsObject ( ( error as NavigationRedirectError ) . to ) , {
1023+ force : true ,
1024+ } ) ,
10231025 toLocation
10241026 // avoid an uncaught rejection, let push call triggerError
10251027 )
You can’t perform that action at this time.
0 commit comments