diff --git a/src/utils/rss.js b/src/utils/rss.js index c6fb8241019..29e5511ea5b 100644 --- a/src/utils/rss.js +++ b/src/utils/rss.js @@ -40,7 +40,7 @@ exports.generateRssFeed = function () { const files = filesByOldest.reverse(); for (const filePath of files) { - const id = filePath.split('/').slice(-1).join(''); + const id = path.basename(filePath); if (id !== 'index.md') { const content = fs.readFileSync(filePath, 'utf-8'); const {data} = matter(content); diff --git a/vercel.json b/vercel.json index 8b0546e372c..4dcc66a12ef 100644 --- a/vercel.json +++ b/vercel.json @@ -29,6 +29,11 @@ "destination": "/learn/rendering-lists#keeping-list-items-in-order-with-key", "permanent": false }, + { + "source": "/docs/events", + "destination": "/reference/react-dom/components/common", + "permanent": false + }, { "source": "/link/invalid-hook-call", "destination": "/warnings/invalid-hook-call-warning",