-
-
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] Fix base API redirects #36833
Conversation
Netlify deploy previewhttps://deploy-preview-36833--material-ui.netlify.app/ Bundle size report |
/api/input-unstyled/ /base/api/input-unstyled/ 301 | ||
/pt/api/input-unstyled/ /pt/base/api/input-unstyled/ 301 | ||
/zh/api/input-unstyled/ /zh/base/api/input-unstyled/ 301 | ||
/api/input-unstyled/ /base/react-input/components-api/#input-unstyled 301 |
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.
To avoid double redirects.
/pt/api/modal-unstyled/ /pt/base/api/modal-unstyled/ 301 | ||
/zh/api/modal-unstyled/ /zh/base/api/modal-unstyled/ 301 | ||
/api/option-group-unstyled/ /base/api/option-group-unstyled/ 301 | ||
/:lang/api/option-group-unstyled/ /:lang/base/api/option-group-unstyled/ 301 |
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.
Using /:lang/
also matches urls starting with /base/
, which causes links like: https://mui.com/base/api/tabs-list-unstyled/ to be broken.
@oliviertassinari is there a way of testing the new redirects on pull requests? |
@mnajdova with Netlify preview. |
I found a few more double redirections searching for |
Resolves #35938 (comment)