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