From: Benjamin Auder Date: Mon, 17 Feb 2020 07:09:07 +0000 (+0100) Subject: Fix links in newmove + game notification emails X-Git-Url: https://git.auder.net/doc/html/vendor/normalize.css?a=commitdiff_plain;h=479e6df472db9f387eed40d084956c8fa62761aa;p=vchess.git Fix links in newmove + game notification emails --- diff --git a/server/routes/games.js b/server/routes/games.js index 3e2122d6..f130f787 100644 --- a/server/routes/games.js +++ b/server/routes/games.js @@ -32,7 +32,7 @@ router.post("/games", access.logged, access.ajax, (req,res) => { const oppIdx = (gameInfo.players[0].id == req.userId ? 1 : 0); const oppId = gameInfo.players[oppIdx].id; UserModel.tryNotify(oppId, - "Game started: " + params.siteURL + "/game/" + ret.gid); + "Game started: " + params.siteURL + "/#/game/" + ret.gid); res.json({gameId: ret.gid}); }); } @@ -91,7 +91,7 @@ router.put("/games", access.logged, access.ajax, (req,res) => { ? "New move in game: " : "Game ended: "); UserModel.tryNotify(oppid, - messagePrefix + params.siteURL + "/game/" + gid); + messagePrefix + params.siteURL + "/#/game/" + gid); } }); }