diff --git a/client/src/components/MainNavigationBar.vue b/client/src/components/MainNavigationBar.vue
index b0d232a9..c3f0d358 100644
--- a/client/src/components/MainNavigationBar.vue
+++ b/client/src/components/MainNavigationBar.vue
@@ -28,12 +28,12 @@ function isInRoutePath(checkPaths: string[]) {
return checkPaths.some((path) => route.path.startsWith(path));
}
-function inLearningPath() {
- return isInRoutePath(["/learn/"]);
+function inCourse() {
+ return isInRoutePath(["/learn", "/competence"]);
}
function getLearningPathStringProp(prop: "title" | "slug"): string {
- return inLearningPath() && learningPathStore.learningPath
+ return inCourse() && learningPathStore.learningPath
? learningPathStore.learningPath[prop]
: "";
}
@@ -144,19 +144,19 @@ const profileDropdownData = [
class="flex-auto mt-8 lg:flex lg:space-y-0 lg:flex-row lg:items-center lg:space-x-10 lg:mt-0"
>
Lernpfad
Kompetenzprofil
diff --git a/client/src/router/index.ts b/client/src/router/index.ts
index 9d0db13e..3609707b 100644
--- a/client/src/router/index.ts
+++ b/client/src/router/index.ts
@@ -58,7 +58,7 @@ const router = createRouter({
component: () => import("@/pages/ComptencesView.vue"),
children: [
{
- path: "overview",
+ path: "",
component: () => import("@/pages/CompetencesMainView.vue"),
},
{