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.
This commit is contained in:
Rotimi Best
2025-11-18 19:16:51 +01:00
parent cc7868276a
commit 1e966aaf0f
+1 -1
View File
@@ -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) => {