Skip to content

Commit a744e77

Browse files
committed
more
1 parent b79aa8a commit a744e77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/site-kit/src/lib/nav/Nav.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ Top navigation bar for the application. It provides a slot for the left side, th
66
import type { Page } from '@sveltejs/kit';
77
export function github_link(page: Page) {
88
if (page.url.pathname.startsWith('/tutorial')) {
9-
return `https://github.com/sveltejs/${page.params.slug.split('/')[0]}`;
9+
return `https://github.com/sveltejs/${page.params.slug!.split('/')[0]}`;
1010
}
1111
if (page.url.pathname.startsWith('/docs')) {
12-
return `https://github.com/sveltejs/${page.params.topic}`;
12+
return `https://github.com/sveltejs/${page.params.topic!}`;
1313
}
1414
return 'https://github.com/sveltejs/svelte';
1515
}

0 commit comments

Comments
 (0)