Skip to content

Node.js based forum software built for the modern web

closes #5976

Barış Soner Uşaklı9e9de2edd00b
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,
});
}