Akhil P
Akhil P

Reputation: 1620

React prerender.io fetch as google is not working

I am using prerender for ExpressJS app. I've kept <meta name="fragment" content="!"> in index.html page. It is working fine when I am using mywebsite.com/?_escape_fragment_=, but when I use fetch as google for mywebsite.com/ I see no data. But for the ugly format with ?_escape_fragment_= it is working like charm.

Will Googlebot crawl mywebsite.com as mywebsite.com/?_escape_fragment_= when it is being indexed or I need to do something for that?

Upvotes: 3

Views: 1087

Answers (1)

Prerender.io
Prerender.io

Reputation: 1604

Fetch as Google has a known issue where it doesn't automatically check for the fragment meta tag. If you enter ?_escaped_fragment_= on the end of the URL in Fetch as Google, it should see the prerendered page correctly.

The real Googlebot does not have that bug, and they will see the fragment meta tag and successfully crawl the ?_escaped_fragment_= URL on their own.

Upvotes: 4

Related Questions