From 4de2cd111a416c3569d06a60878a5bafeb34591f Mon Sep 17 00:00:00 2001 From: imparth7 Date: Mon, 16 Sep 2024 13:04:05 +0530 Subject: [PATCH 1/2] fix:reactjs#7158 issue --- src/utils/rss.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); From 7517b61bc41618f8ef853b6114fb0202798104d5 Mon Sep 17 00:00:00 2001 From: imparth7 Date: Mon, 16 Sep 2024 13:18:59 +0530 Subject: [PATCH 2/2] fix:6940 Redirect legacy events page to commmon components overview --- vercel.json | 5 +++++ 1 file changed, 5 insertions(+) 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",