diff --git a/website/src/Layout.tsx b/website/src/Layout.tsx index cdff82868d87..14839c7ce88e 100644 --- a/website/src/Layout.tsx +++ b/website/src/Layout.tsx @@ -654,7 +654,7 @@ function MDXContent({ toc: headings, children }: ComponentPropsWithoutRef { const [_src, _pages, locale, ...segments] = filePath.split('/') // If the current page is in a language other than English, link to the English version, as translations are handled by Crowdin - return `https://github.com/graphprotocol/docs/blob/main/website/src/pages/${ + return `https://github.com/graphprotocol/docs/blob/main/website/pages/${ locale === 'en' || locale === '[locale]' ? encodeURIComponent(locale) : 'en' }/${segments.join('/')}` })()