1👍
✅
The use of <router-link>
is preferred over using <a>
tag for the reasons given in the docs, and in addition has a simple built-in method of appending to the current path when navigating
<router-link :to="{ path: 'new' }" append>go to new</router-link>
This will route you from /featureX
to /featureX/new
Source:stackexchange.com