diff options
Diffstat (limited to 'src/frontend/components/RepositoryNavbar.vue')
-rw-r--r-- | src/frontend/components/RepositoryNavbar.vue | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/frontend/components/RepositoryNavbar.vue b/src/frontend/components/RepositoryNavbar.vue index 87a32d6..53e1bfa 100644 --- a/src/frontend/components/RepositoryNavbar.vue +++ b/src/frontend/components/RepositoryNavbar.vue @@ -8,9 +8,11 @@ <li v-for="(item, index) in nav_items" :key="index" class="nav-item"> - <a + <router-link class="nav-link fs-4" :class="{ active: activePage === item }" - :aria-current="(activePage === item) ? 'page' : ''" :href="item">{{ item }}</a> + :aria-current="(activePage === item) ? 'page' : ''" :to="'/' + repository + '/' + item"> + {{ item }} + </router-link> </li> <li class="nav-item ms-auto me-4"> <RepositoryCloneDropdown :repository="repository" class="d-block" /> @@ -48,5 +50,5 @@ export default { url: `${window.location.protocol}//${window.location.host}/${this.repository}` }; } -} +}; </script>
\ No newline at end of file |