mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-25 23:05:23 +00:00
Remove "robot=noindex" meta tag (#6260)
This commit is contained in:
@@ -27,14 +27,6 @@ const deployedTranslations = [
|
||||
// It must be the same between all translations.
|
||||
];
|
||||
|
||||
let shouldPreventIndexing = false;
|
||||
if (
|
||||
siteConfig.languageCode !== 'en' &&
|
||||
!deployedTranslations.includes(siteConfig.languageCode)
|
||||
) {
|
||||
shouldPreventIndexing = true;
|
||||
}
|
||||
|
||||
function getDomain(languageCode: string): string {
|
||||
const subdomain = languageCode === 'en' ? '' : languageCode + '.';
|
||||
return subdomain + 'react.dev';
|
||||
@@ -70,7 +62,6 @@ export const Seo = withRouter(
|
||||
href={canonicalUrl.replace(siteDomain, getDomain('en'))}
|
||||
hrefLang="x-default"
|
||||
/>
|
||||
{shouldPreventIndexing && <meta name="robots" content="noindex" />}
|
||||
{deployedTranslations.map((languageCode) => (
|
||||
<link
|
||||
key={'alt-' + languageCode}
|
||||
|
||||
Reference in New Issue
Block a user