Add room alias redirect

This commit is contained in:
Robert Long
2021-12-10 13:27:27 -08:00
parent 12cc844758
commit 8c287ffcb0
2 changed files with 64 additions and 4 deletions

View File

@@ -58,7 +58,7 @@ export function Home() {
e.preventDefault();
const data = new FormData(e.target);
const roomId = data.get("roomId");
history.push(`/room/${roomId}`);
history.push(`/${roomId}`);
},
[history]
);