From 479e6df472db9f387eed40d084956c8fa62761aa Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Mon, 17 Feb 2020 08:09:07 +0100
Subject: [PATCH] Fix links in newmove + game notification emails

---
 server/routes/games.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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