Skip to content

Commit

Permalink
Update canonicals to point to the new domain
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Sep 16, 2021
1 parent fca11d2 commit b6177af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,20 @@ export default class MyDocument extends Document {
{/* SEO */}
<link
rel="canonical"
href={`https://material-ui.com${rewriteUrlForNextExport(
href={`https://mui.com${rewriteUrlForNextExport(
`${userLanguage === 'en' ? '' : `/${userLanguage}`}${canonical}`,
)}`}
/>
<link
rel="alternate"
href={`https://material-ui.com${rewriteUrlForNextExport(canonical)}`}
href={`https://mui.com${rewriteUrlForNextExport(canonical)}`}
hrefLang="x-default"
/>
{LANGUAGES_SSR.map((userLanguage2) => (
<link
key={userLanguage2}
rel="alternate"
href={`https://material-ui.com${rewriteUrlForNextExport(
href={`https://mui.com${rewriteUrlForNextExport(
`${userLanguage2 === 'en' ? '' : `/${userLanguage2}`}${canonical}`,
)}`}
hrefLang={userLanguage2}
Expand Down

0 comments on commit b6177af

Please sign in to comment.