Skip to content

Commit 1b42c2d

Browse files
authored
Fix links in sub navigation (#31)
1 parent b719c97 commit 1b42c2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/components/Layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
if (section.route !== "" && $page.url.pathname.startsWith(`/${section.route}`)) {
4545
currentSectionName = section.name
4646
subNavigation = (section.children || []).map((child) => ({
47-
href: isInternalLink(child.route) ? `/${section.route}/${child.route}` : child.route,
47+
href: child.route.startsWith("http") ? child.route : `/${section.route}/${child.route}`,
4848
name: child.name,
4949
}))
5050
}

0 commit comments

Comments
 (0)