diff --git a/src/client/Main.ts b/src/client/Main.ts index b79f04e6c..046becf7c 100644 --- a/src/client/Main.ts +++ b/src/client/Main.ts @@ -476,8 +476,8 @@ class Client { return; } - if (decodedHash.startsWith("#join")) { - const lobbyId = params.get("lobby"); + if (decodedHash.startsWith("#join=")) { + const lobbyId = decodedHash.substring(6); // Remove "#join=" if (lobbyId && ID.safeParse(lobbyId).success) { this.joinModal.open(lobbyId); console.log(`joining lobby ${lobbyId}`);