From a3355bb81c678aadf7ebedf84c6fac5f62493f95 Mon Sep 17 00:00:00 2001 From: Adam Shiervani Date: Thu, 27 Feb 2025 16:59:43 +0100 Subject: [PATCH] fix(ui): Update device route navigation to root on modal close --- ui/src/routes/devices.$id.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (