Hi I've followed the instructions at https://developers.google.com/webmasters/ajax-crawling/docs/html-snapshot and http://www.yearofmoo.com/2012/11/angularjs-and-seo.html to allow my AngularJS site to serve pre-rendered pages.
I have a Servlet filter that recognises URLs that contain "_escaped_fragment_" and fetches the page specified in the query string using HTMLUnit. However, the page fetched is always the page specified in the 'otherwise' route (or what would be rendered on the root path) no matter what is specified in the query string. To debug I specify "http://localhost/?_escaped_fragment_=/search/Johannesburg" in the browser, the Servlet then fetches http://localhost/#!/search/Johannesburg, but the content returned is that of http://localhost/ I see the same behaviour when I 'Fetch As Google' using http://myip/#!/search/Johannesburg and view the rendered page. If I remove the Servlet filter and ! hash bang prefix, Google still fetches the root path. I'm not sure how to troubleshoot the issue or where to even start looking? Thanks Michael -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
