From 8bccc9e6eab5c965209f88ae1ce8e46c36986b2d Mon Sep 17 00:00:00 2001 From: Pankaj Agrawal Date: Thu, 26 Nov 2020 16:30:14 +0100 Subject: [PATCH] docs: fix broken link for github --- docs/src/gatsby-theme-apollo-docs/components/page-content.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/src/gatsby-theme-apollo-docs/components/page-content.js b/docs/src/gatsby-theme-apollo-docs/components/page-content.js index 3c752c4782f..4cf8fce7111 100644 --- a/docs/src/gatsby-theme-apollo-docs/components/page-content.js +++ b/docs/src/gatsby-theme-apollo-docs/components/page-content.js @@ -179,7 +179,9 @@ export default function PageContent(props) { ); }); - const githubUrl = props.githubUrl.replace("master", "master/docs") + const githubUrl = props.githubUrl.replace("tree/", "blob/") + .replace("/content/", "/docs/content/") + const editLink = githubUrl && ( Edit on GitHub