Ad

Google Bot Cannot Fetch AngularJS Site In Html5 Mode

- 1 answer

My site, which is using AngularJS 1.4.8 in html5 mode and NOT using hashes in URLs is not properly indexed by Google. When I fetch and render the sub-pages in google console, it renders only the main page and apparently treats them as duplicates. It does not seem that googlebot executes Javascript although I really don't know how it can be checked on the google console. On the other hand it accepts individual URLs pointing to subpages that it can't see. Any ideas how to debug such problems?

Ad

Answer

It seems that adding angularjs-viewhead and generating titles for each subpage solved the problem.

Ad
source: stackoverflow.com
Ad