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 previousSegments = currentNavPath.segments;
|
||||||
const i = previousSegments.findIndex(s => s.type === "right-panel");
|
const i = previousSegments.findIndex(s => s.type === "right-panel");
|
||||||
if (i !== -1) {
|
if (i !== -1) {
|
||||||
segments.push(previousSegments[i]);
|
segments.push(...previousSegments.slice(i));
|
||||||
segments.push(previousSegments[i + 1]);
|
|
||||||
}
|
}
|
||||||
} else if (type === "last-session") {
|
} else if (type === "last-session") {
|
||||||
let sessionSegment = currentNavPath.get("session");
|
let sessionSegment = currentNavPath.get("session");
|
||||||
|
|
Loading…
Add table
Reference in a new issue