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(Personal): Make `Personal` related links conform to the `Permalink` setting
haitaoo54610b6fa8d6
diff --git a/ui/src/pages/Users/Personal/components/Comments/index.tsx b/ui/src/pages/Users/Personal/components/Comments/index.tsxindex 2d038b1b..dcd71a91 100644--- a/ui/src/pages/Users/Personal/components/Comments/index.tsx+++ b/ui/src/pages/Users/Personal/components/Comments/index.tsx@@ -24,11 +24,14 @@ const Index: FC<Props> = ({ visible, data }) => {className="text-break"href={item.object_type === 'question'- ? pathFactory.questionLanding(item.object_id, item.url_title)+ ? pathFactory.questionLanding(+ item.question_id,+ item.url_title,+ ): pathFactory.answerLanding({questionId: item.question_id,slugTitle: item.url_title,- answerId: item.object_id,+ answerId: item.answer_id,})}>{item.title}diff --git a/ui/src/pages/Users/Personal/components/Reputation/index.tsx b/ui/src/pages/Users/Personal/components/Reputation/index.tsxindex 01eec63e..708221f0 100644--- a/ui/src/pages/Users/Personal/components/Reputation/index.tsx+++ b/ui/src/pages/Users/Personal/components/Reputation/index.tsx@@ -36,13 +36,13 @@ const Index: FC<Props> = ({ visible, data }) => {href={item.object_type === 'question'? pathFactory.questionLanding(- item.object_id,+ item.question_id,item.url_title,): pathFactory.answerLanding({questionId: item.question_id,slugTitle: item.url_title,- answerId: item.object_id,+ answerId: item.answer_id,})}>{item.title}