Skip to content

Commit

Permalink
Fix edit on github URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Jun 15, 2018
1 parent 9d06969 commit 475f35c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/chapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export default ({
frontmatter: { commit, title, description },
fields: { slug, chapter, framework, language },
} = currentPage;
const githubFileUrl = `${githubUrl}/blob/master/content/${slug.replace(/\//g, '')}.md`;
const githubFileUrl = `${githubUrl}/blob/master/content${slug.replace(/\/$/, '')}.md`;

const nextEntry = entries[toc.indexOf(chapter) + 1];

Expand Down

0 comments on commit 475f35c

Please sign in to comment.