diff --git a/frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte b/frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte index a3c0ddbe8..79adbf2e5 100644 --- a/frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte +++ b/frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte @@ -40,10 +40,13 @@ afterNavigate(async () => { $breadcrumbs = await trimBreadcrumbsToCurrentPath($breadcrumbs, $page.url.pathname); + }); + + $: { + $pageTitle = getPageTitle(); if ($breadcrumbs.length < 2) breadcrumbs.push([{ label: $pageTitle, href: $page.url.pathname }]); - $pageTitle = getPageTitle(); - }); + }