update url in share
parent
e142786581
commit
cadf1b1441
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue