You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vue Router should respect the "default" behavior of any "normal" link.
On a simple HTML page, when clicking on the link of the page we already are on, the page reload. And I think Vue Router should not alter this default behavior, because it's what most user using the web is expecting.
What does the proposed API look like?
Another comment vuejs/vue-router#974 (comment) that has received 33 upvotes, suggests providing a new configuration option duplicateNavigationPolicy that provides reload, reject and ignore policies for handling duplicate navigation. The proposed API looks as follows:
constrouter=newRouter({duplicateNavigationPolicy: 'reload'// or 'ignore', 'reject', or maybe a callable})
The text was updated successfully, but these errors were encountered:
What problem does this feature solve?
A mechanism is needed for handling duplicate navigation.
This has been requested in vuejs/vue-router#974.
The following comment vuejs/vue-router#974 (comment) has received 57 upvotes:
What does the proposed API look like?
Another comment vuejs/vue-router#974 (comment) that has received 33 upvotes, suggests providing a new configuration option
duplicateNavigationPolicy
that provides reload, reject and ignore policies for handling duplicate navigation. The proposed API looks as follows:The text was updated successfully, but these errors were encountered: