mirror of https://github.com/jetkvm/kvm.git
fix: force page reload when redirecting from reboot actions
This commit is contained in:
parent
e2fd6961e2
commit
1afd61e687
|
|
@ -483,6 +483,7 @@ export function RebootingOverlay({ show, postRebootAction }: RebootingOverlayPro
|
||||||
const targetUrl = new URL(postRebootAction.redirectTo, window.location.origin);
|
const targetUrl = new URL(postRebootAction.redirectTo, window.location.origin);
|
||||||
|
|
||||||
window.location.href = targetUrl.href;
|
window.location.href = targetUrl.href;
|
||||||
|
window.location.reload();
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// Ignore errors - they're expected while device is rebooting
|
// Ignore errors - they're expected while device is rebooting
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue