[Solved] Vue Error: NavigationDuplicated: Avoided redundant navigation to current location: “xxx”.

Duplicate route jump problem

Solution: In router folder index.js add the following code:

const originalPush = Router.prototype.push
Router.prototype.push = function push (location) {
  return originalPush.call(this, location).catch(err => err)
}

Similar Posts: