update url in share

test
dan 2020-03-30 13:53:03 -06:00
parent e142786581
commit cadf1b1441
1 changed files with 1 additions and 1 deletions

View File

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