Fix duplicate workspace shell navigation

This commit is contained in:
Mohamed Boudra
2026-05-05 21:55:57 +07:00
parent 60531b5e1b
commit 02e5b56408
12 changed files with 96 additions and 62 deletions
@@ -19,7 +19,7 @@ function shouldUseRetainedWorkspaceSwitch(input: {
}
if (input.currentPathname == null) {
return true;
return false;
}
return parseHostWorkspaceRouteFromPathname(input.currentPathname) !== null;
@@ -49,7 +49,7 @@ export function navigateToWorkspace(
}
const href = buildHostWorkspaceRoute(serverId, workspaceId);
router.navigate(href);
router.dismissTo(href);
}
export function useWorkspaceNavigation() {