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(language-menu): always render inter-locale links #11013

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Apr 26, 2024

Summary

(MP-1092)

Problem

The server-side rendered HTML doesn't contain links to the other locales, and these are only rendered on user interaction, so these are not visible to search engines.

Solution

  1. Add a alwaysRenderChildren option to the Dropdown component.
  2. Set the option for the LanguageMenu.

Screenshots

Before

image

After

image

How did you test this change?

Ran yarn dev and opened http://localhost:3000/en-US/docs/Web/HTML locally, inspecting the HTML using Firefox DevTools.

@caugner caugner requested a review from a team as a code owner April 26, 2024 14:44
@caugner caugner merged commit e74ffd5 into main Apr 26, 2024
14 checks passed
@caugner caugner deleted the MP-1092-always-render-inter-locale-links branch April 26, 2024 15:47
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.

2 participants