We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1e8f42 commit 285ca74Copy full SHA for 285ca74
1 file changed
packages/layerchart/src/routes/docs/+layout.svelte
@@ -22,7 +22,7 @@
22
import { page } from '$app/stores';
23
import { goto } from '$app/navigation';
24
25
- $: [path, type, name] = $page.url.pathname.match('.*/(.*)/(.*)') ?? [];
+ $: [type, name] = $page.url.pathname.split('/').slice(2) ?? [];
26
$: title = $page.data.meta?.title ?? name;
27
$: pageUrl = `src/routes/docs/${type}/${name}/+page.svelte?plain=1`;
28
$: sourceUrl = ['components', 'utils'].includes(type)
0 commit comments