diff --git a/src/components/AppLayout/AppLayout.tsx b/src/components/AppLayout/AppLayout.tsx index 6c4ba3dfb..0c61f065e 100644 --- a/src/components/AppLayout/AppLayout.tsx +++ b/src/components/AppLayout/AppLayout.tsx @@ -149,14 +149,19 @@ const AppLayout: React.FC = ({ children }) => { const handleMenuItemClick = (url: string) => navigate(url, { resetScroll: true }); + const reloadWindow = () => { + window.location.reload(); + }; + const handleErrorBack = () => { - navigate("/"); + navigate("/", { replace: true }); dispatchAppState({ payload: { error: null }, type: "displayError" }); + reloadWindow(); }; const toggleTheme = () => setTheme(isDarkTheme(themeType) ? "light" : "dark");