fix: add delay before page reload to ensure smooth navigation during redirection

This commit is contained in:
Adam Shiervani 2025-10-28 18:47:13 +01:00
parent e708ee39f5
commit 85f5edbd3c
1 changed files with 1 additions and 0 deletions

View File

@ -485,6 +485,7 @@ export function RebootingOverlay({ show, postRebootAction }: RebootingOverlayPro
clearInterval(intervalId); // Stop polling before redirect clearInterval(intervalId); // Stop polling before redirect
window.location.href = targetUrl.href; 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); await sleep(1000);
window.location.reload(); window.location.reload();
} }