Mobile app version of vmapp.org
Login or Join
Steve110

: Does Google or Bing follow dynamic HATEOS links that are not in an 'a' tag? I have a Angular 1x SPA that uses the HATEOS standard to manage navigation. This is further complication by

@Steve110

Posted in: #AngularJs #Hyperlink #WebCrawlers

I have a Angular 1x SPA that uses the HATEOS standard to manage navigation. This is further complication by the links needing to be digested and processed to direct the user to the correct content based on their country and selected (or sniffed) language.

this means that there are a lot of these in the HTML (on div tags and such)

ng-click="goToPage(content.id)"

Which leads to logic which might look like this, or even more complicated:

$rootScope.goToPage = function (here) {
if (here.type && here.type.id == 'somecontenttype') {
//Launch.set(here.title, here.mainAction.href, $filter('link')(here.links, 'page'),'');
$location.path(here.mainAction.href);
} else if (($filter('link')(here.links, 'page')).length > 0) {
$location.path($filter('link')(here.links, 'page'));
}
};


The question is, can Google or Bing follow a link in that example? With the links coming from HATEOS (API) and there being no real address to follow, I would think Google has challenges following these types of links and we would need to rely on a sitemap.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Steve110

1 Comments

Sorted by latest first Latest Oldest Best

 

@Mendez628

This is a difficult question, as we don't know the exact science/algorithms behind major search engine crawlers, but...

Looks like the Googlebot can crawl the DOM and analyze dynamic content, according to this SearchEngineLand article. I would imagine since Google developed AngularJS they know the inner workings and patterns and can more or less crawl the dynamic content, even using different User Agents that might trigger your different locale-specific content.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme