diff --git a/components/DocsHelp.tsx b/components/DocsHelp.tsx index 544189b77..60ce079fc 100644 --- a/components/DocsHelp.tsx +++ b/components/DocsHelp.tsx @@ -301,7 +301,7 @@ export function DocsHelp({ markdownFile }: DocsHelpProps) { target='_blank' rel='noreferrer' className='px-[16px] py-[8px] cursor-pointer border-solid border-[#aaaaaa] border rounded-md hover:bg-gray-200 dark:hover:bg-gray-600' - href={`https://github.com/json-schema-org/website/blob/main/pages${markdownFile ? (markdownFile === '_indexPage' ? extractPathWithoutFragment(router.asPath) + '/_index.md' : extractPathWithoutFragment(router.asPath) + '.md') : `/${path}/index.page.tsx`}`} + href={`https://github.com/json-schema-org/website/blob/main/pages${markdownFile ? (markdownFile === '_indexPage' ? extractPathWithoutFragment(router.asPath) + '/' : extractPathWithoutFragment(router.asPath) + '.md') : `/${path}/index.page.tsx`}`} data-test='edit-on-github-link' >