Google is reportedly engaged on fixing a bug with not having the ability to correctly reply to a noindex directive on some JavaScript generated pages. That is taking place for some React apps utilizing Single Web page Functions (SPAs) which have the noindex directive on them however Google shouldn’t be selecting it up and thus indexing pages that shouldn’t be listed.
This situation was noticed by Mark Williams-Prepare dinner, the Director at Candour and Founding father of AlsoAsked, a preferred website positioning instrument. He posted concerning the situation on LinkedIn and stated, “Here is a screenshot of over 9,000 “noindex” pages being listed. Including ‘noindex’ through JS could be a answer, but it surely’s completely not dependable.”
Right here is that screenshot from Google Search Console’s indexing report:
He later shared that Google is now conscious of the problem and is engaged on fixing it. “I spoke to Googlers about this and it’s a bug they’re engaged on fixing,” he wrote.
Mark went on to elucidate that that is an instance of a React app that has a meta “noindex” added through JavaScript, however the pages are nonetheless getting listed.
Martin Splitt from Google did converse up to now about noindex meta and JavaScript pages and generally, Google does have a tough to processing them. However lately, Google should not be challenged by them. I assume on this case, Google was?
Once more, I believe on this case, Google fetched and rendered the web page previous to the JavaScript executing the noindex meta information. So Googlebot did not see the noindex directive but. This will occur, it’s uncommon, however this will occur and clearly did occur. Google has warned about this earlier than, together with utilizing JavaScript to generate structured data in some instances.
Mark’s answer was to make use of CloudFlare to serve the noindex directive previous to the JavaScript executing its personal meta information (which is served within the HTTP header), however that was solely after he came upon Google was not selecting up on the primary answer he had. Mark wrote, “With some Single Web page Functions (SPAs), it may be troublesome to have management over what’s proven earlier than the JS is executed. On this occasion, I managed to get the pages to set a “noindex” earlier than JS was rendered by utilizing Cloudflare Rework guidelines.”
So in case you seen this situation as nicely, hopefully Google will patch it up and if not, search for an alternate answer – like Mark did.
Discussion board dialogue at LinkedIn.