diff --git a/plugins/workbench-resources/src/components/Workbench.svelte b/plugins/workbench-resources/src/components/Workbench.svelte index bc1a34d2dc..41c785a92b 100644 --- a/plugins/workbench-resources/src/components/Workbench.svelte +++ b/plugins/workbench-resources/src/components/Workbench.svelte @@ -218,7 +218,7 @@ if (resolvedApp === undefined) { loc.path[2] = (currentAppAlias as string) ?? resolved.defaultLocation.path[2] loc.path[3] = currentSpace ?? (currentSpecial as string) ?? resolved.defaultLocation.path[3] - if (currentSpace !== undefined) { + if (loc.path[3] !== undefined) { loc.path[4] = currentSpecial ?? (asideId as string) ?? resolved.defaultLocation.path[4] } else { loc.path.length = 4