facebook / docusaurus

Easy to maintain open source documentation websites.
https://docusaurus.io
MIT License
56.71k stars 8.53k forks source link

@docusaurus/Head meta contains data-rh=true, which leads to verification error in Baidu.com and Sogou.com #10682

Closed travisbikkle closed 2 hours ago

travisbikkle commented 3 hours ago

Have you read the Contributing Guidelines on issues?

Prerequisites

Description

generated with @docusaurus/Head is like:

<meta name="xxxxxx-verification" content="xxxxxx" data-rh="true">

Some search engines requires

<meta name="xxxxxx-verification" content="xxxxxx">

, and they are not smart enough verify a meta with data-rh.

Reproducible demo

No response

Steps to reproduce

import Head from '@docusaurus/Head';
        <Head>
            <meta name="baidu-site-verification" content="codeva-xxxxx" />
            <meta name="sogou_site_verification" content="xxxxx" />
        </Head>

Expected behavior

Although those search engines are stupid, but we also should not add anything we won't use. Please remove the "data-rh" property.

<meta name="xxxxxx-verification" content="xxxxxx">

Actual behavior

<meta name="xxxxxx-verification" content="xxxxxx" data-rh="true">

Your environment

Self-service

Josh-Cena commented 2 hours ago

This is not added by us. Please report to https://github.com/staylor/react-helmet-async instead. It looks like they already have https://github.com/staylor/react-helmet-async/issues/12