From 86cb3ddc6d5bead011b50ae9b578a27c2c17b76c Mon Sep 17 00:00:00 2001 From: N-Pex Date: Wed, 24 Feb 2021 15:11:39 +0100 Subject: [PATCH] Escape room links correctly --- src/router/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/index.js b/src/router/index.js index 12f2665..27882cd 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -86,7 +86,7 @@ router.beforeEach((to, from, next) => { }); router.getRoomLink = function(roomId) { - return window.location.origin + window.location.pathname + "#/room/" + roomId; + return window.location.origin + window.location.pathname + "#/room/" + encodeURIComponent(util.sanitizeRoomId(roomId)); } export default router