diff --git a/Server/src/routes/api/share.js b/Server/src/routes/api/share.js index 38cd66c..57cecc3 100644 --- a/Server/src/routes/api/share.js +++ b/Server/src/routes/api/share.js @@ -43,7 +43,7 @@ function getOther(req, res, param) { referrer.startsWith('http://opengraphcheck.com')) { getOtherMeta(req, res, params.title, params.description, params.imageUrl, params.imageWidth, params.imageHeight); } else { - var url = params.url || (req.protocol + "://" + req.hostname); + var url = params.url || (req.protocol + "://" + req.hostname + req.originalUrl); res.redirect(url); } }