Skip to content

Commit 1a98da7

Browse files
committed
Fix the blog slug html creation that leads to improper redirect
1 parent c3b24ff commit 1a98da7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gatsby-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ exports.onCreateNode = ({node, boundActionCreators, getNode}) => {
189189
const day = match[3];
190190
const filename = match[4];
191191

192-
slug = `/blog/${year}/${month}/${day}/${filename}.html`;
192+
slug = `blog/${year}/${month}/${day}/${filename}.html`;
193193

194194
const date = new Date(year, month - 1, day);
195195

0 commit comments

Comments
 (0)