From 1fb27599488cd371c08cdf1df60f05a86d87be06 Mon Sep 17 00:00:00 2001 From: teodorus-nathaniel Date: Mon, 11 Mar 2024 22:48:23 +0700 Subject: [PATCH] Add href link in server side for load more button, to improve seo --- src/components/lists/InfiniteList.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/lists/InfiniteList.tsx b/src/components/lists/InfiniteList.tsx index 7f8699d48..7d968099d 100644 --- a/src/components/lists/InfiniteList.tsx +++ b/src/components/lists/InfiniteList.tsx @@ -140,6 +140,7 @@ const InnerInfiniteList = (props: InnerInfiniteListProps) => { onClick={() => handleInfiniteOnLoad(page)} block className='mb-2' + href={isServerSide() ? `?page=${page + 1}` : undefined} style={{ opacity: isServerSide() ? 0 : 1 }} > Load more