Skip to content

Commit a3355bb

Browse files
committed
fix(ui): Update device route navigation to root on modal close
1 parent 4052b3d commit a3355bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/routes/devices.$id.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ export default function KvmIdRoute() {
439439
const outlet = useOutlet();
440440
const location = useLocation();
441441
const onModalClose = useCallback(() => {
442-
if (location.pathname !== "/other-session") navigateTo("..");
442+
if (location.pathname !== "/other-session") navigateTo("/");
443443
}, [navigateTo, location.pathname]);
444444

445445
return (

0 commit comments

Comments
 (0)