Fix the blog slug html creation that leads to improper redirect

This commit is contained in:
Emmanuel Fallancy
2017-10-22 23:24:11 +11:00
parent c3b24ff0e5
commit 1a98da7d98

View File

@@ -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);