Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default rule #124

Open
lombardifrancesco opened this issue Aug 3, 2021 · 1 comment
Open

Change default rule #124

lombardifrancesco opened this issue Aug 3, 2021 · 1 comment
Labels
feature New feature or request

Comments

@lombardifrancesco
Copy link

Is possible to overwrite the default rule: "By default, pages from the same route opens the same tab"?
I wuold like to implement open new tab always on click over a route.

@lombardifrancesco lombardifrancesco added the feature New feature or request label Aug 3, 2021
@bhuh12
Copy link
Owner

bhuh12 commented Aug 7, 2021

https://bhuh12.github.io/vue-router-tab/guide/essentials/rule.html#fullpath

const route = {
  path: '/page',
  component: MyPage,
  meta: {
    title: 'Page',
    key: 'fullPath'
  }
}
<a @click="$router.push(`/page?t=${+new Date()}`)">New Page</a>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants