Vue Router is duplicating entries in window.history in Safari Vue Router is duplicating entries in window.history in Safari vue.js vue.js

Vue Router is duplicating entries in window.history in Safari


Though not an exact answer, to solve the issue wrap <keep-alive> around <router-view> in App.vue:

// App.vue<template>  <div id="app">    <!-- Note that <router-view> is wrapped by <keep-alive> -->    <keep-alive>      <router-view />    </keep-alive>  </div></template>

Source: GitHub discussion.