Skip to content

Commit

Permalink
Fix the blog slug html creation that leads to improper redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
efallancy committed Oct 22, 2017
1 parent c3b24ff commit 1a98da7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 1a98da7

Please sign in to comment.