How to make history.replaceState work with Nuxt? - Nuxt