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

[docs] Add redirects for MUI X v6 #34296

Merged
merged 17 commits into from
Oct 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions docs/public/_redirects
Original file line number Diff line number Diff line change
Expand Up @@ -402,14 +402,16 @@ https://v4.material-ui.com/* https://v4.mui.com/:splat 301!
## MUI X
## Unlike the store that expect to be hosted under a subfolder,
## MUI X is configured to be hosted at the root.
/static/x/* https://material-ui-x.netlify.app/static/x/:splat 200
/x/_next/* https://material-ui-x.netlify.app/_next/:splat 200
/x/* https://material-ui-x.netlify.app/x/:splat 200
/r/x-* https://material-ui-x.netlify.app/r/x-:splat 200
/:lang/x/* https://material-ui-x.netlify.app/:lang/x/:splat 200
/static/x/* https://docs-next--material-ui-x.netlify.app/static/x/:splat 200
/x/_next/* https://docs-next--material-ui-x.netlify.app/_next/:splat 200
/x/* https://docs-next--material-ui-x.netlify.app/x/:splat 200
/r/x-* https://docs-next--material-ui-x.netlify.app/r/x-:splat 200
/:lang/x/* https://docs-next--material-ui-x.netlify.app/:lang/x/:splat 200

## MUI Toolpad
/static/toolpad/* https://mui-toolpad-docs.netlify.app/static/toolpad/:splat 200
/toolpad/_next/* https://mui-toolpad-docs.netlify.app/_next/:splat 200
/toolpad/* https://mui-toolpad-docs.netlify.app/toolpad/:splat 200
/r/toolpad-* https://mui-toolpad-docs.netlify.app/r/toolpad-:splat 200

/* https://mui.com/:splat 301!
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't it be 302 instead of 301? This redirect is temporary and will be removed as soon as we start working on the core v6

Copy link
Member

@oliviertassinari oliviertassinari Feb 22, 2023

Choose a reason for hiding this comment

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

Yeah, makes sense. In

$ curl -I https://next.mui.com/material-ui/react-alert/
HTTP/2 301

we could expect a 302.

Copy link
Member

Choose a reason for hiding this comment

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

Addressed in #36296