Skip to content

Commit 7c46712

Browse files
author
Hofstetter Benjamin
committed
Breadcrumbs are not working with SSR on Distribution Page
Fixes #31
1 parent fcc5c23 commit 7c46712

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

opendata.swiss/ui/pages/datasets/[datasetId]/distribution/[distributionId].vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ const distribution = computed(() => {
4444
return dists
4545
})
4646
47+
const firstBreadcrumb = await homePageBreadcrumb(locale)
4748
48-
const breadcrumbs = [
49-
await homePageBreadcrumb(locale),
49+
const breadcrumbs = computed(()=> [
50+
firstBreadcrumb,
5051
{
5152
title: t('message.header.navigation.datasets'),
5253
path: '/datasets',
@@ -61,7 +62,7 @@ const breadcrumbs = [
6162
{
6263
title: distribution.value?.title
6364
}
64-
]
65+
])
6566
6667
useSeoMeta({
6768
title: `${distribution.value?.title} | ${resultEnhanced.value?.getTitle} | ${t('message.header.navigation.datasets')} | opendata.swiss`,

0 commit comments

Comments
 (0)