ng2-meta icon indicating copy to clipboard operation
ng2-meta copied to clipboard

SEO does not work with ng2-meta in SPA

Open phanikiranwtc opened this issue 8 years ago • 2 comments

I have tried implementing this in my application and as well i have tried to see the updated title and description in facebook post with the different route urls of the demo application.

http://vinaygopinath.github.io/ngMeta/#/download

In the facebook post i have tried using below urls

  1. http://vinaygopinath.github.io/ngMeta/#/download
  2. http://vinaygopinath.github.io/ngMeta/#/
  3. http://vinaygopinath.github.io/ngMeta/#/example/dynamic-tags

For all the three url's i could see same title and description in the preview screen shot 2016-12-21 at 12 47 39 pm

Please help us understanding whether we are expecting which is not supported by this library or we are missing some thing.

Thanks in Advance, Phani

phanikiranwtc avatar Dec 21 '16 07:12 phanikiranwtc

As far as I know you can set a default title with this module. Depending on what component you call you can update the title, but this is done after a small amount of time. I assume that facebook just uses the inital title when fetching the url as it would be overkill to load the complete page and wait for the title to get updated.

Chuvisco88 avatar Dec 21 '16 10:12 Chuvisco88

It will load your defaults. For true SEO you should look into server rendering through angular universal.

brow1726 avatar Jan 24 '17 18:01 brow1726