From 380b01c364477457c2c433984eaebe63715d95f7 Mon Sep 17 00:00:00 2001 From: Jake/Rads Date: Tue, 28 Jun 2022 07:51:13 +0200 Subject: [PATCH] fix(dashboard): fix page links from dashboard --- dashboard/src/lib/group/Body.svelte | 2 +- dashboard/src/lib/member/Body.svelte | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dashboard/src/lib/group/Body.svelte b/dashboard/src/lib/group/Body.svelte index db35b329..5aba4336 100644 --- a/dashboard/src/lib/group/Body.svelte +++ b/dashboard/src/lib/group/Body.svelte @@ -56,7 +56,7 @@ function getGroupPageUrl(randomizer?: boolean) { let str: string; - if (pathName.startsWith("/dash/")) str = "/dash"; + if (pathName.startsWith("/dash")) str = "/dash"; else str = "/profile"; str += `/g/${group.id}`; diff --git a/dashboard/src/lib/member/Body.svelte b/dashboard/src/lib/member/Body.svelte index 43a90cce..5ec3c17d 100644 --- a/dashboard/src/lib/member/Body.svelte +++ b/dashboard/src/lib/member/Body.svelte @@ -73,7 +73,7 @@ function getMemberPageUrl() { let str: string; - if (pathName.startsWith("/dash/")) str = "/dash"; + if (pathName.startsWith("/dash")) str = "/dash"; else str = "/profile"; str += `/m/${member.id}`; @@ -83,7 +83,7 @@ function getSystemPageUrl() { let str: string; - if (pathName.startsWith("/dash/")) str = "/dash"; + if (pathName.startsWith("/dash")) str = "/dash"; else { str = "/profile"; str += `/s/${member.system}`;