fix(dashboard): fix page links from dashboard

This commit is contained in:
Jake/Rads 2022-06-28 07:51:13 +02:00
parent e33ca27dd5
commit 380b01c364
2 changed files with 3 additions and 3 deletions

View File

@ -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}`;

View File

@ -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}`;