diff --git a/Server/src/routes/api/share.js b/Server/src/routes/api/share.js index 9cb3511..3a36366 100644 --- a/Server/src/routes/api/share.js +++ b/Server/src/routes/api/share.js @@ -8,6 +8,7 @@ const calendarImageUrl = '/api2/cim/'; const eventUrl = '/api2/share/e'; const sermonImageUrl = '/assets/images/tiny/facebookplay.png'; const sermonUrl = '/api2/share/s'; +const otherUrl = '/api2/share/o'; router.get("/:shareCode",function(req,res){ @@ -67,12 +68,13 @@ function getSermon(req, res, id){ function getOtherMeta(req, res, title, description, imageUrl, imageWidth, imageHeight, url) { imageWidth = imageWidth || 200; imageHeight = imageHeight || 200; + url = req.protocol + '//' + req.hostname + otherUrl + encodeURIComponent(url); var result = `