Migrations
A list of breaking changes that may require code changes.
v1 -> v2
beforeEnter redirectno longer acceptsreplace. It is inherited from the original navigation:router.redirect({ ..., replace: true })completes the whole redirect chain withreplaceState, while a regularrouter.redirect(...)usespushStateIn browser Back / Forward
popstatenavigations,beforeEnter redirectalways usesreplaceStateto avoid infinite loops and broken Back navigationpreventRedirectwas removed frombeforeLeavebecause it created a false expectation that browser Back / Forwardpopstatenavigations can be blocked. If you need to handle a forbidden navigation, usebeforeEnter redirect