diff --git a/src/lib/components/breadcrumbs.svelte b/src/lib/components/breadcrumbs.svelte index 2add9e76d..4cb1ffe18 100644 --- a/src/lib/components/breadcrumbs.svelte +++ b/src/lib/components/breadcrumbs.svelte @@ -14,7 +14,7 @@ import { base } from '$app/paths'; import { newOrgModal } from '$lib/stores/organization'; import { Click, trackEvent } from '$lib/actions/analytics'; - import { page } from '$app/stores'; + import { page } from '$app/state'; type Project = { name: string; @@ -65,7 +65,7 @@ export let organizations: Organization[] = []; $: selectedOrg = organizations.find((organization) => organization.isSelected); - $: selectedProject = $page.data.project; + $: selectedProject = page.data.project; let organisationBottomSheetOpen = false; let projectsBottomSheetOpen = false; @@ -82,7 +82,7 @@ title: 'Switch Organization', items: organizations.map((organization) => ({ name: organization.name, - href: `/console/organization-${organization?.$id}` + href: `${base}/organization-${organization?.$id}` })) }, bottom: { @@ -103,7 +103,7 @@ items: [ { name: 'Organization overview', - href: `/console/organization-${selectedOrg?.$id}` + href: `${base}/organization-${selectedOrg?.$id}` } ] }, @@ -141,12 +141,12 @@ if (index < 4) { return { name: project.name, - href: `/console/project-${project.region}-${project.$id}/overview` + href: `${base}/project-${project.region}-${project.$id}/overview` }; } else if (index === 4) { return { name: 'All projects', - href: `/console/organization-${selectedOrg?.$id}` + href: `${base}/organization-${selectedOrg?.$id}` }; } return null; @@ -158,7 +158,7 @@ { name: 'Create project', trailingIcon: IconPlus, - href: `/console/organization-${selectedOrg?.$id}?create-project` + href: `${base}/organization-${selectedOrg?.$id}?create-project` } ] }, @@ -169,7 +169,7 @@ { name: 'Create project', trailingIcon: IconPlus, - href: `/console/organization-${selectedOrg?.$id}?create-project` + href: `${base}/organization-${selectedOrg?.$id}?create-project` } ] } @@ -221,7 +221,7 @@ {#if selectedOrg}