diff --git a/ui/src/routes/devices.$id.tsx b/ui/src/routes/devices.$id.tsx index bc3c856..a68ddb2 100644 --- a/ui/src/routes/devices.$id.tsx +++ b/ui/src/routes/devices.$id.tsx @@ -439,7 +439,7 @@ export default function KvmIdRoute() { const outlet = useOutlet(); const location = useLocation(); const onModalClose = useCallback(() => { - if (location.pathname !== "/other-session") navigateTo(".."); + if (location.pathname !== "/other-session") navigateTo("/"); }, [navigateTo, location.pathname]); return (