From 371e3f13e0a046aeca3a2895e4a85f8b51059edf Mon Sep 17 00:00:00 2001
From: HampusM <hampus@hampusmat.com>
Date: Wed, 2 Jun 2021 20:13:48 +0200
Subject: Added a tree page

---
 src/frontend/components/RepositoryNavbar.vue | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

(limited to 'src/frontend/components/RepositoryNavbar.vue')

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
-- 
cgit v1.2.3-18-g5258

