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] Fix double API page redirection #36743

Merged

Conversation

oliviertassinari
Copy link
Member

There is a double redirection from the existing API pages. https://deploy-preview-35938--material-ui.netlify.app/base/api/use-tabs-list/

Screenshot 2023-04-01 at 13 22 25

It was introduced in #35938.

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work docs Improvements or additions to the documentation labels Apr 1, 2023
/base/api/use-option/ /base/react-select/hooks-api/#use-option 301
/base/api/use-select/ /base/react-select/hooks-api/#use-select 301
/base/api/use-slider/ /base/react-slider/hooks-api/#use-slider 301
/base/api/use-snackbar/ /base/react-snackbar/hooks-api/#use-snackbar 301
Copy link
Member Author

Choose a reason for hiding this comment

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

A side note: the previous URLs feel clearer, when sharing them with someone else.

Copy link
Member

Choose a reason for hiding this comment

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

Agree, but the new urls are at least understandable and the overall DX feels better.

Copy link
Member Author

Choose a reason for hiding this comment

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

@mnajdova I wonder if /props/ and /hooks/ could work better for the URL, e.g. https://ark-ui.com/docs/react/components/popover/props. It's shorter and maybe clearer. Nevermind, we probably want to keep API in the pathname, and props would be too narrow.

@mui-bot
Copy link

mui-bot commented Apr 1, 2023

Netlify deploy preview

Bundle size report

No bundle size changes

Generated by 🚫 dangerJS against d179c95

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Apr 3, 2023
Copy link
Member

@mnajdova mnajdova left a comment

Choose a reason for hiding this comment

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

Nica catch, thanks for creating the PR.

Signed-off-by: Marija Najdova <mnajdova@gmail.com>
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Apr 4, 2023
Comment on lines +13 to +14
"themeDefaultProps": true,
"muiName": "JoyModalOverflow",
Copy link
Member

Choose a reason for hiding this comment

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

#36262 did not update with the latest master.

@siriwatknp siriwatknp merged commit fdd8a79 into mui:master Apr 4, 2023
5 checks passed
@oliviertassinari oliviertassinari deleted the fix-double-redirect-base-api branch April 4, 2023 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants