diff --git a/src/App/App.tsx b/src/App/App.tsx
index 05e1143be868d531dd9a96ba70fe16ab27a20265..6764d14f353a987bd156e15596bb5ad89fcc94ee 100644
--- a/src/App/App.tsx
+++ b/src/App/App.tsx
@@ -23,10 +23,8 @@ import "./LoadingScreen.css";
 
 
 const App = () => {
-  window.onbeforeunload = function () {
-    window.scrollTo(0, 0);
-  }
-  
+  window.scrollTo(0, 0);
+
   const [isLoading, setIsLoading] = useState(true);
 
   const pathMapping = getPathMapping();