Escape room links correctly

This commit is contained in:
N-Pex 2021-02-24 15:11:39 +01:00
parent 2b5ab1437c
commit 86cb3ddc6d

View file

@ -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