mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-18 00:06:57 +01:00
Copy over all segments after right-panel
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
0ff0850979
commit
28a0a0830f
@ -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…
x
Reference in New Issue
Block a user