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:
@@ -46,7 +46,7 @@ const getActivePlan = (org: CurrentOrg) => {
|
|||||||
export const currentOrgPlan = derived(currentOrg, ($currentOrg) => getActivePlan($currentOrg));
|
export const currentOrgPlan = derived(currentOrg, ($currentOrg) => getActivePlan($currentOrg));
|
||||||
|
|
||||||
export const currentOrgPath = derived(currentOrg, ($currentOrg) =>
|
export const currentOrgPath = derived(currentOrg, ($currentOrg) =>
|
||||||
$currentOrg.siteName ? `/org/${$currentOrg.siteName}` : ''
|
$currentOrg.siteName ? `/org/${$currentOrg.siteName}` : '/org/*'
|
||||||
);
|
);
|
||||||
|
|
||||||
export const currentOrgDomain = derived(currentOrg, ($currentOrg) => {
|
export const currentOrgDomain = derived(currentOrg, ($currentOrg) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user