Skip to content

Commit

Permalink
fix: bug with pages containing one single result
Browse files Browse the repository at this point in the history
  • Loading branch information
ldeluigi committed Nov 12, 2024
1 parent 3526826 commit d307a7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
}
}

if (backendCombos.length === 1) {
if (backendCombos.length === 1 && (context.query.page || '1') === '1') {
return {
redirect: {
destination: `/combo/${backendCombos[0].id}`,
Expand Down

0 comments on commit d307a7a

Please sign in to comment.