diff --git a/app/components/AppHeaderBrand.vue b/app/components/AppHeaderBrand.vue index 3b5e602..81e5f26 100644 --- a/app/components/AppHeaderBrand.vue +++ b/app/components/AppHeaderBrand.vue @@ -61,7 +61,6 @@ onMounted(() => { viewBox="0 0 16 16" width="16" > - Slash forward icon { const links: NonNullable = [] const collect = (entries: NavigationItem[]) => { for (const entry of entries) { if (entry.page !== false && entry.path && entry.path !== '/') { - links.push({ title: entry.title, description: entry.description, href: entry.path }) + const seen = links.find((link) => link.href === entry.path) + if (seen) seen.description ||= entry.description + else links.push({ title: entry.title, description: entry.description, href: entry.path }) } if (entry.children?.length) collect(entry.children) }