I am currently working on an angular.js app and have been following Google's guide for ajax-based applications. Here are the steps I have taken:
- Added meta tags
<base href="/">
<meta name="fragment" content="!">
- Configured angular.js
$locationProvider.html5Mode(true);
$locationProvider.hashPrefix('!');
- My HTML links are structured like this (is it correct?):
<a ng-href="/#!/login">Login</a>
- I submitted a sitemap to Google Search Console (X months ago)
I have discovered that using escaped_fragment may not be the right approach. Am I making a mistake somewhere? Currently, only the homepage has been indexed by Google.
When I use the fetch as Google tool, all pages are rendered correctly.