v1.18.x
Barış Soner Uşaklı
parent 425db49fe8
commit 9e9de2edd0

@ -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,
}); });
} }

Loading…
Cancel
Save