We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a05436 commit a53857eCopy full SHA for a53857e
clients/web/src/components/pagination/pagination.tsx
@@ -111,7 +111,8 @@ export const Pagination = ({
111
const shownLinks = showOverflow ? [...links, ...endLink] : links
112
113
// We want to know if we should be activating the forward/backward based on
114
- // the position we are at in the sequence.
+ // the position we are at in the sequence. If we are at the second page we will return
115
+ // them to the base location (without /page)
116
const disableBack = currentPage === 1
117
const disableForward = currentPage === totalPages
118
const backLink = currentPage === 2 ? pagePattern : `${pagePattern}/page/${currentPage - 1}`
0 commit comments