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] Avoid unwanted undefined in page title #45718

Merged
merged 1 commit into from
Mar 27, 2025

Conversation

aarongarciah
Copy link
Member

Before this change, "undefined" was showing up in the versions docs page title https://mui.com/versions/

Screenshot 2025-03-27 at 15 51 47

@aarongarciah aarongarciah added the docs Improvements or additions to the documentation label Mar 27, 2025
@aarongarciah aarongarciah requested a review from DiegoAndai March 27, 2025 15:11
@@ -156,7 +156,11 @@ export default function AppLayoutDocs(props) {
}}
/>
<AdManager {...(hasTabs && { classSelector: '.component-tabs' })}>
<Head title={`${title} - ${productName}`} description={description} card={card} />
<Head
title={`${title}${productName ? ` - ${productName}` : ''}`}
Copy link
Member Author

Choose a reason for hiding this comment

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

This doesn't prevent the console.error in line 142 since the versions page doesn't have a productName. I don't want to change this logic much because the versions page is subject to change.

@aarongarciah aarongarciah marked this pull request as ready for review March 27, 2025 15:12
@mui-bot
Copy link

mui-bot commented Mar 27, 2025

Netlify deploy preview

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

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 92d846e

@aarongarciah aarongarciah merged commit 26ab4c5 into mui:master Mar 27, 2025
23 checks passed
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants