Skip to content

Commit 65b4a8f

Browse files
authored
fix(blog): Fix homepage link in RSS feed (#8089)
1 parent 5a401ab commit 65b4a8f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/site/next-data/generators/__tests__/websiteFeeds.test.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ describe('generateWebsiteFeeds', () => {
3030
id: siteConfig.rssFeeds[0].file,
3131
title: siteConfig.rssFeeds[0].title,
3232
language: 'en',
33-
link: `${base}/feed/${siteConfig.rssFeeds[0].file}`,
34-
description: siteConfig.rssFeeds[0].description,
33+
link: base,
34+
description: siteConfig.rssFeeds[0].description || '',
3535
});
3636

3737
const date = new Date(blogData.posts[0].date);

apps/site/next-data/generators/websiteFeeds.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ const generateWebsiteFeeds = ({ posts }) => {
3232
id: file,
3333
title: title,
3434
language: 'en',
35-
link: `${canonicalUrl}/feed/${file}`,
36-
description: description,
35+
link: canonicalUrl,
36+
description: description || '',
3737
});
3838

3939
const blogFeedEntries = posts

0 commit comments

Comments
 (0)