docs: broken Edit this page link (#620)

This commit is contained in:
Eduard Aymerich
2023-09-08 12:28:50 +02:00
committed by GitHub
parent c1e0654417
commit 22430e168a

View File

@@ -65,7 +65,7 @@ const headline = computed(() => findPageHeadline(page.value))
const links = computed(() => [{
icon: 'i-heroicons-pencil-square',
label: 'Edit this page',
to: `https://github.com/nuxt/ui/edit/dev/docs/content/${page?.value?._file}`,
to: `https://github.com/nuxt/ui/edit/dev/docs/content/${page?.value?._file.split('/').slice(1).join('/')}`,
target: '_blank'
}, {
icon: 'i-heroicons-star',