diff --git a/frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte b/frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte index 795f125a0..7f54eb087 100644 --- a/frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte +++ b/frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte @@ -19,10 +19,10 @@ function getPageTitle(): string { return safeTranslate( - $page.data.title || $page.data.str || $page.data.name || $breadcrumbs.length > 1 - ? $breadcrumbs[$breadcrumbs.length - 1]?.label - : (URL_MODEL_MAP[$page.url.pathname.split('/').pop() as string]?.verboseNamePlural ?? - $page.url.pathname.split('/').pop()) + $page.data.title ?? + ($page.data.str || $page.data.name || $breadcrumbs.length > 1 + ? $breadcrumbs[$breadcrumbs.length - 1]?.label + : URL_MODEL_MAP[$page.url.pathname.split('/').pop() as string]?.verboseNamePlural) ); }