From 85f5edbd3c84a73daa17893bd1203c166ea02dc1 Mon Sep 17 00:00:00 2001 From: Adam Shiervani Date: Tue, 28 Oct 2025 18:47:13 +0100 Subject: [PATCH] fix: add delay before page reload to ensure smooth navigation during redirection --- ui/src/components/VideoOverlay.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/components/VideoOverlay.tsx b/ui/src/components/VideoOverlay.tsx index bce15374..e84cfc04 100644 --- a/ui/src/components/VideoOverlay.tsx +++ b/ui/src/components/VideoOverlay.tsx @@ -485,6 +485,7 @@ export function RebootingOverlay({ show, postRebootAction }: RebootingOverlayPro clearInterval(intervalId); // Stop polling before redirect window.location.href = targetUrl.href; + // Add 1s delay between setting location.href and calling reload() to prevent reload from interrupting the navigation. await sleep(1000); window.location.reload(); }