code: function generateLinkTag(linkTpl, scheme, host, path) {
    linkTpl = linkTpl.replace('<scheme>', scheme).replace('<host>', host);
    if (path == null || path === '*') {
      return linkTpl.replace('<path>', '');
    }
  
    // for android we need to replace * with .* for pattern matching
    if (path.indexOf('*') >= 0) {
      path = path.replace(/\*/g, '.*');
    }
  
    // path should start with /
    if (path.indexOf('/') != 0) {
      path = '/' + path;
    }
  
    return linkTpl.replace('<path>', path);
  }
docs: Generate <link /> tag.
  
  @param {String} linkTpl - template to use for tag generation
  @param {String} scheme - host scheme
  @param {String} host - host name
  @param {String} path - host path
  @return {String} <link /> tag