diff --git a/smooth-doc/gatsby-node.js b/smooth-doc/gatsby-node.js index c90efd9..de15ea9 100644 --- a/smooth-doc/gatsby-node.js +++ b/smooth-doc/gatsby-node.js @@ -140,7 +140,7 @@ function onCreateMdxNode({ node, getNode, actions }, options) { baseDirectory, '', ) - return `${repositoryURL}edit/${githubDefaultBranch}${relativePath}` + return new URL(`blob/edit/${githubDefaultBranch}${relativePath}`, repositoryURL).toString() } createNodeField({