Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix(QuestionList): Set the correct pagination path for tag detail pages

haitao(lj)9100a99c0f70
diff --git a/ui/src/components/QuestionList/index.tsx b/ui/src/components/QuestionList/index.tsx
index f40cd308..d0e216c3 100644
--- a/ui/src/components/QuestionList/index.tsx
+++ b/ui/src/components/QuestionList/index.tsx
@@ -125,7 +125,7 @@ const QuestionList: FC<Props> = ({ source }) => {
currentPage={curPage}
totalSize={count}
pageSize={pageSize}
- pathname="/questions"
+ pathname={source === 'questions' ? '/questions' : ''}
/>
</div>
</div>