Skip to content

Commit 704eba7

Browse files
authored
Merge pull request #222 from awslabs/docs-fix-broken-link
docs: fix broken link for github
2 parents 355e33b + 8bccc9e commit 704eba7

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)