Question

My site is in AngularJS, so I recently created HTML snapshots of all my content, added the escaped fragment tag to the head of all my pages (meta name="fragment" content="!"), and then tried to test to see if the new setup was working in Webmaster Tools. When I look in the source I see the escaped fragment (however, it's inverted) (meta content="!" name="fragment"). I'm not sure why that's happening or if that matters...

When I submit a URL to "Fetch as Google," Webmaster Tools returns Fetch Status Not Found. However, if I manually add "?_escaped_fragment_=" to the end of my URL, I get a success status.

So, my question is, does this have something to do with how Webmaster Tools tests URLs or have I set up fragment escaping incorrectly?

Was it helpful?

Solution

Apparently "Fetch as Google" does not fetch the same way that Google does. When using "Fetch as Google" the page isn't checked for the meta tag. However, obviously, Google does check the page for the meta tag when crawling.

OTHER TIPS

add a client side "easter egg" keypress that takes the browser's current location and generate the '_escaped_fragment_' form, making sure to escape as needed, and then tell the browser to load that location.

Then to test all you have to do is press your magic key-press and the browser will then redirect to your escaped fragment rendered page.

You can then copy/paste this newly created url into sitemarkup testers, etc.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top