diff --git a/frontend/src/utils/saveScrollPosition.ts b/frontend/src/utils/saveScrollPosition.ts index ed4c6786..03153b7e 100644 --- a/frontend/src/utils/saveScrollPosition.ts +++ b/frontend/src/utils/saveScrollPosition.ts @@ -42,6 +42,10 @@ export const useSaveScrollPosition = (storageKey: string, pathName: string) => { } }, 16); } else { + window.scrollTo({ + top: 0, + behavior: 'smooth', + }); window.addEventListener('scroll', handleScroll); } };