in public/src/js/modules/content-api.js [230:249]
function fetchMetaForPath(path) {
return request({
url: CONST.apiSearchBase + '/' + path + '?page-size=0'
}).then(function(resp) {
return !resp.response ? {} :
_.chain(['tag', 'section'])
.map(function(key) { return resp.response[key]; })
.filter(function(obj) { return _.isObject(obj); })
.reduce(function(m, obj) {
m.section = m.section || _.last((obj.id || obj.sectionId || '').split('/'));
m.webTitle = m.webTitle || obj.webTitle;
m.description = m.description || obj.description; // upcoming in Capi, at time of writing
m.title = m.title || obj.title; // this may never be added to Capi, or may under another name
return m;
}, {})
.value();
})
// swallow error
.catch(function () {});
}