I have a summary page and a detail subpage. All of the routes are implemented with vue-router
(v 0.7.x) using programmatic navigation like this:
this.$router.go({ path: "/link/to/page" })
However, when I route from the summary page to the subpage, I need to open the subpage in a new tab just as one would by adding _target="blank"
to an <a>
tag.
Is there a way to do this?
In case that you define your route like the one asked in the question (path: '/link/to/page'):
You can resolve the URL in your summary page and open your sub page as below:
Of course if you've given your route a name, you can resolve the URL by name:
References: