code: function getSubdir() {
      // Parse local path location
      var localPath = url.parse(config.get('url')).path,
          subdir;
  
      // Remove trailing slash
      if (localPath !== '/') {
          localPath = localPath.replace(/\/$/, '');
      }
  
      subdir = localPath === '/' ? '' : localPath;
      return subdir;
  }
docs: Returns a subdirectory URL, if defined so in the config.
  @return {string} URL a subdirectory if configured.