From 19edc8a3a7e492b625ca71999fb4b588734a2044 Mon Sep 17 00:00:00 2001
From: Gilgard <Hjelljord.alida@gmail.com>
Date: Mon, 2 May 2022 15:20:30 +0200
Subject: [PATCH] Community header reroutes back to community home

---
 src/components/CommunityComponents/CommunityHeader.vue | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/components/CommunityComponents/CommunityHeader.vue b/src/components/CommunityComponents/CommunityHeader.vue
index 9d36eaf..4aacbd7 100644
--- a/src/components/CommunityComponents/CommunityHeader.vue
+++ b/src/components/CommunityComponents/CommunityHeader.vue
@@ -1,6 +1,8 @@
 <template>
   <div class="flex items-center justify-between mx-4">
-    <div class="flex-1 min-w-0">
+    <router-link
+    :to="'/community/' + community.communityId"
+    class="flex-1 min-w-0">
       <h2
         class="text-2xl font-bold leading-7 text-gray-900 sm:text-3xl sm:truncate"
       >
@@ -26,7 +28,7 @@
           {{ community.location }}
         </div>
       </div>
-    </div>
+    </router-link>
     <div>
       <!-- If the user is not a member in the community, this button will show -->
       <div v-if="!member">
-- 
GitLab