Skip to content

Commit

Permalink
fix(ssr): use absolute href for alternate rss link (#9794)
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner authored Oct 25, 2023
1 parent 4d9413d commit 5150c6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssr/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export default function render(
? "noindex, nofollow"
: "index, follow";
const robotsMeta = `<meta name="robots" content="${robotsContent}">`;
const rssLink = `<link rel="alternate" type="application/rss+xml" title="MDN Blog RSS Feed" href="/${DEFAULT_LOCALE}/blog/rss.xml" hreflang="en" />`;
const rssLink = `<link rel="alternate" type="application/rss+xml" title="MDN Blog RSS Feed" href="${BASE_URL}/${DEFAULT_LOCALE}/blog/rss.xml" hreflang="en" />`;
const ssr_data = [...translations, ...webfontTags, rssLink, robotsMeta];
let html = buildHtml;
html = html.replace(
Expand Down

0 comments on commit 5150c6c

Please sign in to comment.