Search code examples
angularjsurl-rewritingseosocial-networkingsocialshare

How show page preview in Google , Facebook ,Twitter and many more social sites when url contain #!


I am working in Angula JS and Drupal in this i am facing two issue SEO and page preview when we paste url in Google,Facbook,Twitter and many more social site

i have done case for _escaped_fragment_ in url by this help url(https://developers.google.com/webmasters/ajax-crawling/docs/getting-started)

But the challange is coming when i paste my url like

http://example.com/#!/test/a/1235

then no preview is generated

How will i show preview in social sites.

Any help is appreciated.

Thanks


Solution

  • Welcome to Javascript application! :)

    _escaped_fragment_ is not standard & Social platforms do not support it

    Google developed the _escaped_fragment_ system but this not a standard. There is many bots on the web and most of them do not understand the _escaped_fragment_ solution and do not understand Javascript applications as AngluarJS ones.

    As far as I know (I worked on many JS application websites), social platforms do not use the _escaped_fragment_ system.

    Moreover, some Google services do not support it yet.

    URL is standard and is supported by every bots

    If you want every robots to be able to crawl your website, the only way for now is to use classic URLs.

    For now, you need to make sure your content is delivered on classic URLs. It is the only way to be sure that it will be interpreted by every bots of the web