From 467a76c2231b9555a6d7deb4f19b4a5eddd6b3e3 Mon Sep 17 00:00:00 2001 From: Bruno Windels <274386+bwindels@users.noreply.github.com> Date: Fri, 25 Nov 2022 17:45:06 +0100 Subject: [PATCH] decode ids separately, as we encode them separately as well --- src/domain/navigation/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain/navigation/index.ts b/src/domain/navigation/index.ts index a75260d0..3bbe4d3a 100644 --- a/src/domain/navigation/index.ts +++ b/src/domain/navigation/index.ts @@ -137,7 +137,7 @@ export function parseUrlPath(urlPath: string, currentNavPath: Path, if (type === "rooms") { const roomsValue = iterator.next().value; if (roomsValue === undefined) { break; } - const roomIds = decodeURIComponent(roomsValue).split(","); + const roomIds = roomsValue.split(",").map(id => decodeURIComponent(id)); segments.push(new Segment(type, roomIds)); const selectedIndex = parseInt(iterator.next().value || "0", 10); const roomId = roomIds[selectedIndex];