add missing decode

This commit is contained in:
Bruno Windels 2022-11-25 17:38:13 +01:00
parent 2d0122dda7
commit b8444a32c0

View File

@ -137,7 +137,7 @@ export function parseUrlPath(urlPath: string, currentNavPath: Path<SegmentType>,
if (type === "rooms") {
const roomsValue = iterator.next().value;
if (roomsValue === undefined) { break; }
const roomIds = roomsValue.split(",");
const roomIds = decodeURIComponent(roomsValue).split(",");
segments.push(new Segment(type, roomIds));
const selectedIndex = parseInt(iterator.next().value || "0", 10);
const roomId = roomIds[selectedIndex];