Node.js based forum software built for the modern web
closes #6568
Barış Soner Uşaklıe7cd552e3399
diff --git a/src/controllers/topics.js b/src/controllers/topics.jsindex b6ff617c15..e1796c13f9 100644--- a/src/controllers/topics.js+++ b/src/controllers/topics.js@@ -323,7 +323,7 @@ function addOGImageTagsForPosts(res, posts) {function addOGImageTag(res, imageUrl) {if (typeof imageUrl === 'string' && !imageUrl.startsWith('http')) {- imageUrl = nconf.get('url') + imageUrl;+ imageUrl = nconf.get('url') + imageUrl.replace(new RegExp('^' + nconf.get('relative_path')), '');}res.locals.metaTags.push({property: 'og:image',