Fix getRoomUrl

This commit is contained in:
Robert Long 2021-12-10 14:03:20 -08:00
parent 10f1446415
commit 93be86c42e

View file

@ -575,11 +575,11 @@ export function getRoomUrl(roomId) {
const [localPart, host] = roomId.replace("#", "").split(":"); const [localPart, host] = roomId.replace("#", "").split(":");
if (host !== window.location.host) { if (host !== window.location.host) {
return `${window.location.host}/rooms/${roomId}`; return `${window.location.host}/room/${roomId}`;
} else { } else {
return `${window.location.host}/${localPart}`; return `${window.location.host}/${localPart}`;
} }
} else { } else {
return `${window.location.host}/rooms/${roomId}`; return `${window.location.host}/room/${roomId}`;
} }
} }