diff --git a/client/src/ui/teamMenu.ts b/client/src/ui/teamMenu.ts index b257feeb..b4e58fdc 100644 --- a/client/src/ui/teamMenu.ts +++ b/client/src/ui/teamMenu.ts @@ -447,7 +447,7 @@ export class TeamMenu { // Invite link if (this.roomData.roomUrl) { - const roomUrl = `${window.location.href.replace(this.roomData.roomUrl, "")}${this.roomData.roomUrl}`; + const roomUrl = `${window.location.href.replace(window.location.hash, "")}${this.roomData.roomUrl}`; const roomCode = this.roomData.roomUrl.substring(1); $("#team-url").html(roomUrl);