From d218868f3aa7e0ef72af603efec7e8f5ca28845b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich?= Date: Wed, 1 Jan 2025 00:53:05 +0100 Subject: [PATCH] Ensure RSS feed generator uses post.id instead of slug for each link --- src/pages/rss.xml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/rss.xml.js b/src/pages/rss.xml.js index 3a76fa3..c46859c 100644 --- a/src/pages/rss.xml.js +++ b/src/pages/rss.xml.js @@ -13,7 +13,7 @@ export async function GET(context) { site: context.site, items: posts.map((post) => ({ ...post.data, - link: `/blog/${post.slug}/` + link: `/blog/${post.id}/` })) });