From 1e966aaf0f6b4be92c443b809f1487a0292a9a3f Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Tue, 18 Nov 2025 19:16:51 +0100 Subject: [PATCH] fix: redirect to 404 page after user closes welcome modal. This is because when you close the modal we redirect you to /org/siteName/courses but if you click close before we get your organization siteName the route is just /courses which redirects to a 404. --- apps/dashboard/src/lib/utils/store/org.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dashboard/src/lib/utils/store/org.ts b/apps/dashboard/src/lib/utils/store/org.ts index 71888015..6df1ddc0 100644 --- a/apps/dashboard/src/lib/utils/store/org.ts +++ b/apps/dashboard/src/lib/utils/store/org.ts @@ -46,7 +46,7 @@ const getActivePlan = (org: CurrentOrg) => { export const currentOrgPlan = derived(currentOrg, ($currentOrg) => getActivePlan($currentOrg)); export const currentOrgPath = derived(currentOrg, ($currentOrg) => - $currentOrg.siteName ? `/org/${$currentOrg.siteName}` : '' + $currentOrg.siteName ? `/org/${$currentOrg.siteName}` : '/org/*' ); export const currentOrgDomain = derived(currentOrg, ($currentOrg) => {