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] Remove hash property and leverage pathname #36764

Merged
merged 3 commits into from
Apr 4, 2023

Conversation

siriwatknp
Copy link
Member

@siriwatknp siriwatknp commented Apr 3, 2023

@oliviertassinari found a bug from #35938

Preview: https://deploy-preview-36764--material-ui.netlify.app/base/react-tabs/hooks-api/#use-tab

Root cause

The translations.json does not contain the hash information, that's why the title are all the same.

Screenshot 2023-04-01 at 15 06 31

Fix

I don't think we need to add extra hash property, instead push the hash to the pathname so that the title is generated correctly and we extract the hash before sending to NextJS Link.

image


@siriwatknp siriwatknp requested a review from mnajdova April 3, 2023 04:40
@siriwatknp siriwatknp added the docs Improvements or additions to the documentation label Apr 3, 2023
@mui-bot
Copy link

mui-bot commented Apr 3, 2023

Netlify deploy preview

https://deploy-preview-36764--material-ui.netlify.app/

Bundle size report

No bundle size changes

Generated by 🚫 dangerJS against 59b5def

@siriwatknp siriwatknp added the bug 🐛 Something doesn't work 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.

Looks good, I left few comments to improve the readability of the code.

docs/src/modules/components/AppNavDrawer.js Outdated Show resolved Hide resolved
docs/src/modules/components/AppNavDrawer.js Outdated Show resolved Hide resolved
docs/src/modules/components/AppNavDrawer.js Outdated Show resolved Hide resolved
docs/src/modules/components/AppNavDrawer.js Outdated Show resolved Hide resolved
docs/src/modules/components/AppNavDrawer.js Outdated Show resolved Hide resolved
docs/src/modules/components/AppNavDrawer.js Outdated Show resolved Hide resolved
Co-authored-by: Marija Najdova <mnajdova@gmail.com>
Signed-off-by: Siriwat K <siriwatkunaporn@gmail.com>
@siriwatknp siriwatknp merged commit 62907aa into mui:master Apr 4, 2023
8 checks passed
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

3 participants