Fix getRoomUrl
This commit is contained in:
parent
10f1446415
commit
93be86c42e
1 changed files with 2 additions and 2 deletions
|
@ -575,11 +575,11 @@ export function getRoomUrl(roomId) {
|
|||
const [localPart, host] = roomId.replace("#", "").split(":");
|
||||
|
||||
if (host !== window.location.host) {
|
||||
return `${window.location.host}/rooms/${roomId}`;
|
||||
return `${window.location.host}/room/${roomId}`;
|
||||
} else {
|
||||
return `${window.location.host}/${localPart}`;
|
||||
}
|
||||
} else {
|
||||
return `${window.location.host}/rooms/${roomId}`;
|
||||
return `${window.location.host}/room/${roomId}`;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue