diff --git a/docs/components/primitives/EditButton.tsx b/docs/components/primitives/EditButton.tsx index 4db732d9fd0..7295cfe9eee 100644 --- a/docs/components/primitives/EditButton.tsx +++ b/docs/components/primitives/EditButton.tsx @@ -13,10 +13,10 @@ export function EditButton({ isIndexPage?: boolean; editPath?: string; }) { - let fileUrl = `https://github.com/keystonejs/keystone/edit/website_live/docs/pages/`; + let fileUrl = `https://github.com/keystonejs/keystone/edit/website_live/docs/pages`; if (editPath) { - fileUrl += editPath; + fileUrl += `/${editPath}`; } else if (isIndexPage) { fileUrl += `${pathName}/index.tsx`; } else {