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) {