Skip to content

[docs] Fix redirection to GitHub example view#4642

Merged
oliviertassinari merged 1 commit intomui:masterfrom
oliviertassinari:fix-redirect-github
Jan 30, 2025
Merged

[docs] Fix redirection to GitHub example view#4642
oliviertassinari merged 1 commit intomui:masterfrom
oliviertassinari:fix-redirect-github

Conversation

@oliviertassinari oliviertassinari added docs Improvements or additions to the documentation. type: bug It doesn't behave as expected. labels Jan 29, 2025
Comment on lines -112 to +111
source: 'https://github.com/mui/toolpad/tree/master/examples/core/tutorial/',
source: 'https://github.com/mui/toolpad/tree/master/examples/core/tutorial',
Copy link
Member Author

Choose a reason for hiding this comment

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

GitHub supports both, they have no care for forcing one over the other, it's so cheap, lol, not even a canonical link.
In any case, here, we can use what their links default to.

x same as for the other diffs.

<Button
component="a"
href={versionGitHubLink(example.href)}
href={example.href}
Copy link
Member Author

Choose a reason for hiding this comment

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

href are live demos, no need to handle them. It's only relevant for source.

@mui-bot
Copy link

mui-bot commented Jan 29, 2025

Netlify deploy preview

https://deploy-preview-4642--mui-toolpad-docs.netlify.app/

Generated by 🚫 dangerJS against a0437b7

@oliviertassinari oliviertassinari merged commit f20fd55 into mui:master Jan 30, 2025
4 of 5 checks passed
@oliviertassinari oliviertassinari deleted the fix-redirect-github branch January 30, 2025 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to the documentation. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants