Hi everyone and HNY, For my website I'm trying to re-route people hitting the 'equipe' router-link (going to /equipe) in my navbar to the children nested page /equipe/2018, with this folder structure:
However I can't see how to do this, as I tried to extend routes but this replace the component and the parent, and reroute the "hard-way" with
created:
function () {
if (this.$route.fullPath == "/equipe") {
this.$router.push("/equipe" + "/2018")
}
}
does some strange bugs.
How can I keep the link to /equipe but redirecting everyone coming straight to this to /equipe/2018? Thanks a lot!
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2162">#c2162</a>)</em></sub></div>