[Vuejs]-Vue router inside component doesn't redirect

0πŸ‘

βœ…

The problem is the href-attribute inside the router link (b-nav-item href=”#”).
Omitting the href-attribute does solve the problem.

<router-link :to="{ name: 'forum' }">
    <b-nav-item><i class="material-icons md-36">forum</i> Forum</b-nav-item>
</router-link>

Leave a comment