From d567664d8bfa01fc90235d5338c1c3a3f6b79450 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 18 May 2021 14:47:45 +0200 Subject: [PATCH] ensure there is a session id in last-session action --- src/domain/navigation/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain/navigation/index.js b/src/domain/navigation/index.js index 34151c62..3a9b4a07 100644 --- a/src/domain/navigation/index.js +++ b/src/domain/navigation/index.js @@ -115,7 +115,7 @@ export function parseUrlPath(urlPath, currentNavPath, defaultSessionId) { segments.push(new Segment("room", roomId)); } else if (type === "last-session") { let sessionSegment = currentNavPath.get("session"); - if (!sessionSegment?.value && defaultSessionId) { + if (typeof sessionSegment?.value !== "string" && defaultSessionId) { sessionSegment = new Segment("session", defaultSessionId); } if (sessionSegment) {