From 3fd3230c27c278739085258c331871dcbc6832a6 Mon Sep 17 00:00:00 2001 From: Clinton Date: Tue, 11 May 2021 14:01:04 -0700 Subject: [PATCH] fix: create embed pages with trailing slashes --- plugins/gatsby-plugin-embed-pages/gatsby-node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/gatsby-plugin-embed-pages/gatsby-node.js b/plugins/gatsby-plugin-embed-pages/gatsby-node.js index 3de2fe741..daf55f96d 100644 --- a/plugins/gatsby-plugin-embed-pages/gatsby-node.js +++ b/plugins/gatsby-plugin-embed-pages/gatsby-node.js @@ -28,7 +28,7 @@ exports.createPages = async ({ actions, graphql, reporter }) => { body, } = node; const nodePath = frontmatter.path || slug; - const pagePath = path.join(nodePath, 'embed'); + const pagePath = path.join(nodePath, 'embed', '/'); const contentSourcePath = nodePath; createPage({