Skip to content

Commit

Permalink
fix(ssr): use absolute href for alternate rss link
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Oct 11, 2023
1 parent ff73a32 commit 57cfda5
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 57cfda5

Please sign in to comment.