-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[docs] Do not repeat language snippet in url in Algolia search #29483
Conversation
It's not solving the root issue. Now, when you use Enter to validate a result, you lose the language prefix. Actually, something else is wrong, keyboard interactions do a hard navigation, it's wrong, it should be client-side navigation. |
@oliviertassinari I addressed your points. It's working on my local server. Let me know. |
@@ -277,7 +277,7 @@ function AppFrame(props) { | |||
{LANGUAGES_LABEL.map((language) => ( | |||
<MenuItem | |||
component="a" | |||
data-no-link="true" | |||
data-no-markdown-link="true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this for? No objection, just want to know what it does.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MarkdownLinks.js tries to handle all the <a>
clicks. This was done to have smooth routing navigation on the markdown. data-no-markdown-link
opt-out from this behavior.
Closes #29332
Closes #29461
Problem:
https://mui.com/zh/zh/components/buttons/#main-content
mui.com
already changes tomui.com/${language}
if language other than English is set.(1) Go to https://mui.com/getting-started/usage/
(2) Change language setting to Portuguese
(3) Open algolia searchbox and enter "mig"
(4) Click the first link
(4) You will be directed to
https://mui.com/pt/pt/guides/migration-v4/#main-content
Solution:
Preview: https://deploy-preview-29483--material-ui.netlify.app/