Copy over all segments after right-panel

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-08-03 13:42:27 +05:30
parent 0ff0850979
commit 28a0a0830f

View file

@ -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");