Escape room links correctly
This commit is contained in:
parent
2b5ab1437c
commit
86cb3ddc6d
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ router.beforeEach((to, from, next) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
router.getRoomLink = function(roomId) {
|
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
|
export default router
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue