mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 04:12:34 +00:00
Fix the blog slug html creation that leads to improper redirect
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user