: 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
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.
More posts by @Steve110
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.