With the router-link tag with vue-router, "Setting replace prop will call router.replace() instead of router.push() when clicked, so the navigation will not leave a history record", according to the docs. But this doesn't seem to be happening for me, so I think I must be misunderstanding something. I have a navigation menu in my SPA and the router-link in each menu item has a replace prop. Yet when I click on each menu item in turn, it clearly does add to the history, in that the back button takes me back to the previous item, and I can actually see in the Firefox history the list of URLs being added to. What am I doing wrong?
<router-link :to="{ name: 'edit-sale', params: { action: 'add' }}" replace>New Sale</router-link>. That uses this route:{name: 'edit-sale', path: '/sale/:action(add|modify)/:id?', component: SaleManager}. HOWEVER...I find now that the back button is behaving as expected, so maybe I had just run into some cacheing issue? - John Moore