Skip to content

Commit f603688

Browse files
authored
Fixed the Alternate page with proper canonical tag issue
1 parent 3e6e7d2 commit f603688

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/app/page.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const generateMetadata = async({searchParams}: HomepageProps): Promise<Me
2020
next: currentPage < totalPages ? absoluteURL(`/?page=${currentPage + 1}`) : undefined
2121
},
2222
alternates: {
23-
canonical: absoluteURL("/")
23+
canonical: currentPage === 1 ? absoluteURL("/") : absoluteURL(`/?page=${currentPage}`)
2424
}
2525
}
2626
}

0 commit comments

Comments
 (0)