From 28a0a0830f6726b8b838dbb2057a74d698b8dd94 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Tue, 3 Aug 2021 13:42:27 +0530 Subject: [PATCH] Copy over all segments after right-panel Signed-off-by: RMidhunSuresh --- src/domain/navigation/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/domain/navigation/index.js b/src/domain/navigation/index.js index f443d415..dbac16ac 100644 --- a/src/domain/navigation/index.js +++ b/src/domain/navigation/index.js @@ -136,8 +136,7 @@ export function parseUrlPath(urlPath, currentNavPath, defaultSessionId) { const previousSegments = currentNavPath.segments; const i = previousSegments.findIndex(s => s.type === "right-panel"); if (i !== -1) { - segments.push(previousSegments[i]); - segments.push(previousSegments[i + 1]); + segments.push(...previousSegments.slice(i)); } } else if (type === "last-session") { let sessionSegment = currentNavPath.get("session");