Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ssr): use absolute href for alternate rss link #9794

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Oct 11, 2023

Summary

Fixes #9367.

Problem

The alternate link for the rss feed had a relative href.

Solution

Make the href absolute by prefixing it with the base url.


How did you test this change?

Verified locally by running yarn && yarn dev and inspecting the HTML of http://localhost:5042/en-US/docs/Learn/HTML, which now has:

<link rel="alternate" type="application/rss+xml" title="MDN Blog RSS Feed" href="https://developer.mozilla.org/en-US/blog/rss.xml" hreflang="en">

@caugner caugner requested a review from a team October 11, 2023 09:35
@caugner caugner requested a review from bsmth October 18, 2023 12:20
Copy link
Member

@bsmth bsmth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks! 👍🏻

@caugner caugner merged commit 5150c6c into main Oct 25, 2023
12 checks passed
@caugner caugner deleted the fix-blog-alternate-link branch October 25, 2023 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blog alternate link's href should not be relative
2 participants