Skip to content

Commit 5150c6c

Browse files
authored
fix(ssr): use absolute href for alternate rss link (#9794)
1 parent 4d9413d commit 5150c6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: ssr/render.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export default function render(
263263
? "noindex, nofollow"
264264
: "index, follow";
265265
const robotsMeta = `<meta name="robots" content="${robotsContent}">`;
266-
const rssLink = `<link rel="alternate" type="application/rss+xml" title="MDN Blog RSS Feed" href="/${DEFAULT_LOCALE}/blog/rss.xml" hreflang="en" />`;
266+
const rssLink = `<link rel="alternate" type="application/rss+xml" title="MDN Blog RSS Feed" href="${BASE_URL}/${DEFAULT_LOCALE}/blog/rss.xml" hreflang="en" />`;
267267
const ssr_data = [...translations, ...webfontTags, rssLink, robotsMeta];
268268
let html = buildHtml;
269269
html = html.replace(

0 commit comments

Comments
 (0)