-
+
);
}
diff --git a/web/src/components/scroll-to-top.client.tsx b/web/src/components/scroll-to-top.client.tsx
index 44c1030..450199d 100644
--- a/web/src/components/scroll-to-top.client.tsx
+++ b/web/src/components/scroll-to-top.client.tsx
@@ -1,9 +1,11 @@
'use client'
+import { usePathname } from "next/navigation";
import { useEffect } from "react";
export default function ScrollToTop() {
+ const pathname = usePathname();
useEffect(() => {
window.scrollTo(0, 0);
- }, []);
+ }, [pathname]);
return null;
}
\ No newline at end of file