Skip to content

Commit 114d007

Browse files
authored
fix(slug): link of edit button in toc (#143)
1 parent e2ccdd2 commit 114d007

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/pages/[...slug].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const headline = computed(() => findPageHeadline(navigation.value, page.value))
3939
const links = computed(() => [toc?.bottom?.edit && {
4040
icon: 'i-lucide-external-link',
4141
label: 'Edit this page',
42-
to: `${toc.bottom.edit}/${page?.value?.path}`,
42+
to: `${toc.bottom.edit}/${page?.value?.stem}.${page?.value?.extension}`,
4343
target: '_blank'
4444
}, ...(toc?.bottom?.links || [])].filter(Boolean))
4545
</script>

0 commit comments

Comments
 (0)