Browse Source

Fix the blog slug html creation that leads to improper redirect

main
Emmanuel Fallancy 7 years ago
parent
commit
1a98da7d98
  1. 2
      gatsby-node.js

2
gatsby-node.js

@ -189,7 +189,7 @@ exports.onCreateNode = ({node, boundActionCreators, getNode}) => {
const day = match[3];
const filename = match[4];
slug = `/blog/${year}/${month}/${day}/${filename}.html`;
slug = `blog/${year}/${month}/${day}/${filename}.html`;
const date = new Date(year, month - 1, day);

Loading…
Cancel
Save