My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Google not following links in AngularJS application

Chris Omland's photo
Chris Omland
·Oct 7, 2016

I have an AngularJS application that injects dynamic content into a div on an external page. The dynamic content includes links that I'd like google to crawl. Google does crawl and index the content on the first page but never appears to follow the links in the dynamic content. The links are valid anchor tags, they update the URL using the locationService by adding query parameters, because this is hosted on 3rd party sites I can't use the route service and build a url path like 'example.com/foo/12345', rather a link uses query params. For example a link on the page may look like <a href="example.com?title=foo&titleId=12345">Text</a>

I've read a lot of information on this and many others have had success getting google to follow links from an AngularJS SPA. Those examples seem to use the router service which I'm not using but I'd expect google to still follow the links with the query parameters.

Any ideas on why Google may not be crawling these links?