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