diff --git a/packages/web/components/templates/library/LibraryContainer.tsx b/packages/web/components/templates/library/LibraryContainer.tsx index b10024ad0..569c03937 100644 --- a/packages/web/components/templates/library/LibraryContainer.tsx +++ b/packages/web/components/templates/library/LibraryContainer.tsx @@ -162,6 +162,10 @@ export function LibraryContainer(props: LibraryContainerProps): JSX.Element { // eslint-disable-next-line react-hooks/exhaustive-deps }, [setQueryInputs, router.isReady, router.query]) + useEffect(() => { + window.localStorage.setItem('nav-return', router.asPath) + }, [router.asPath]) + const hasMore = useMemo(() => { if (!itemsPages) { return false