Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 50
    "But this also refreshes the page" Commented Mar 7, 2019 at 14:49
  • 1
    Not sure about Vue2 but works like a charm in Vue3 (without page-refresh) Commented Dec 30, 2021 at 10:46
  • 2
    @ArnovanOordt It also reloads the page in Vue 3. Commented Sep 7, 2022 at 7:55
  • 2
    There is a misunderstanding here about what "refreshes the page" means here. A hard refresh (like F5) and an actual vue-router client-side navigation are 2 different things. Here, jean's solution does not trigger a "page hard refresh", meanwhile it will trigger a vue-router navigation and possible mount/unmount specific components. Things that OP do not want indeed. Commented Dec 3, 2022 at 17:28