-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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] Improve social sharing of docs pages #34346
[docs] Improve social sharing of docs pages #34346
Conversation
const { canonicalAs } = pathnameToLanguage(router.asPath); | ||
const card = | ||
headers.card === 'true' | ||
? `https://mui.com/static${router.pathname}/card.png` | ||
? `https://mui.com/static/blog/${slug}/card.png` |
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.
A small fix. It helps to search in the codebase for places were the images inside the blog folder are used.
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.
Agree, a couple of options:
|
Same rationale as #32536. When sharing a page to a specific docs page, the social image creates confusion https://twitter.com/olivtassinari/status/1571093885644046339.
Going forward, I think that we have two opportunities to improve, by increasing effort & outcome:
A bit related to #32181