Skip to content

Commit 8bccc9e

Browse files
author
Pankaj Agrawal
committed
docs: fix broken link for github
1 parent 66edf65 commit 8bccc9e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/src/gatsby-theme-apollo-docs/components/page-content.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ export default function PageContent(props) {
179179
);
180180
});
181181

182-
const githubUrl = props.githubUrl.replace("master", "master/docs")
182+
const githubUrl = props.githubUrl.replace("tree/", "blob/")
183+
.replace("/content/", "/docs/content/")
184+
183185
const editLink = githubUrl && (
184186
<AsideLink href={githubUrl}>
185187
<IconGithub /> Edit on GitHub

0 commit comments

Comments
 (0)