nfl / react-helmet

A document head manager for React
MIT License
17.28k stars 657 forks source link

noindex meta tag displaying in source but not DOM #647

Closed dross15 closed 2 years ago

dross15 commented 2 years ago

Currently, on this page: https://turo.com/us/en/drivers/18140850, if you view the page source you will see a meta "noindex" tag:

Screen Shot 2021-07-08 at 4 49 24 PM

But, if you inspect the page, you will not see that tag in the DOM: Screen Shot 2021-07-08 at 4 42 47 PM

The source code looks like:

<Helmet>
        <title>{title}</title>
        <meta content={description} name="description" />
        {withMetaNoIndex && <meta content="noindex" name="robots" />}
...
</Helmet>

The noindex meta tag should display in both the source code and the DOM, and I'm trying to uncover why it is not.

I am using React: 16.13.1 & react-helmet: 6.1.0