forked from mystiq/hydrogen-web
Copy over all segments after right-panel
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
0ff0850979
commit
28a0a0830f
1 changed files with 1 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue