skip to Main Content

We have a catalog that loads an AngularJS application dynamically according to the defined subdomain. For example: http://subdomain.billiving.biz

We need to support dynamic title that will be set by AngularJS. I saw in Google documentation that we need to add this link:

<meta name="fragment" content="!">

Anything else we should do to set this correctly?
Thanks

2

Answers


  1. Chosen as BEST ANSWER

    I eventually ended up using Push-State. This includes two changes:

    1. Enabling Html5Mode:

      .config(['$locationProvider', function($locationProvider) {
          $locationProvider.html5Mode({enabled: true});
      }]);
      
    2. Providing a base href from your app (when working local need full localhost path)

      <base href="/">

    That's it.


  2. You have to follow HashBang URL standard or HTML5 URL

    Something like

    angular.module('app', []).config(['$locationProvider', function($location) {
      $location.hashPrefix('!');
    }]);
    

    Here is the good guide to follow Angular SEO

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search