From 9e9de2edd00b60ce1208e186dd93830fbbef0be5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 10 Oct 2017 11:01:10 -0400 Subject: [PATCH] closes #5976 --- src/controllers/category.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/controllers/category.js b/src/controllers/category.js index 8edc68d076..c7414fc096 100644 --- a/src/controllers/category.js +++ b/src/controllers/category.js @@ -187,8 +187,11 @@ function addTags(categoryData, res) { ]; if (categoryData.backgroundImage) { + if (!categoryData.backgroundImage.startsWith('http')) { + categoryData.backgroundImage = nconf.get('url') + categoryData.backgroundImage; + } res.locals.metaTags.push({ - name: 'og:image', + property: 'og:image', content: categoryData.backgroundImage, }); }