This commit is contained in:
Barış Soner Uşaklı
2017-10-10 11:01:10 -04:00
parent 425db49fe8
commit 9e9de2edd0

View File

@@ -187,8 +187,11 @@ function addTags(categoryData, res) {
]; ];
if (categoryData.backgroundImage) { if (categoryData.backgroundImage) {
if (!categoryData.backgroundImage.startsWith('http')) {
categoryData.backgroundImage = nconf.get('url') + categoryData.backgroundImage;
}
res.locals.metaTags.push({ res.locals.metaTags.push({
name: 'og:image', property: 'og:image',
content: categoryData.backgroundImage, content: categoryData.backgroundImage,
}); });
} }