From 26904954ab9035ace822c7f445856922c11c460a Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Sun, 18 Aug 2019 12:51:27 +0300 Subject: [PATCH] Revert a change in tag pages Would cause a bug with tag page listing --- gatsby-node.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gatsby-node.js b/gatsby-node.js index 2f5d0c987..e06ad9448 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -72,11 +72,13 @@ exports.createPages = ({ graphql, actions }) => { tags.forEach(tag => { const tagPath = `/tag/${toKebabCase(tag)}/`; + const tagRegex = `/^\\s*${tag}/`; createPage({ path: tagPath, component: tagPage, context: { tag, + tagRegex, }, }); });