mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-22 18:21:39 +01:00
add missing decode
This commit is contained in:
parent
2d0122dda7
commit
b8444a32c0
@ -137,7 +137,7 @@ export function parseUrlPath(urlPath: string, currentNavPath: Path<SegmentType>,
|
|||||||
if (type === "rooms") {
|
if (type === "rooms") {
|
||||||
const roomsValue = iterator.next().value;
|
const roomsValue = iterator.next().value;
|
||||||
if (roomsValue === undefined) { break; }
|
if (roomsValue === undefined) { break; }
|
||||||
const roomIds = roomsValue.split(",");
|
const roomIds = decodeURIComponent(roomsValue).split(",");
|
||||||
segments.push(new Segment(type, roomIds));
|
segments.push(new Segment(type, roomIds));
|
||||||
const selectedIndex = parseInt(iterator.next().value || "0", 10);
|
const selectedIndex = parseInt(iterator.next().value || "0", 10);
|
||||||
const roomId = roomIds[selectedIndex];
|
const roomId = roomIds[selectedIndex];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user