This is an automated email from the ASF dual-hosted git repository. shuai pushed a commit to branch test in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
commit e75b1eddf5907d92c9f5893d27733c6693933c9a Author: shuai <[email protected]> AuthorDate: Thu Apr 18 10:25:54 2024 +0800 fix: report duplicate links in review a new window opens --- ui/src/pages/Review/components/FlagContent/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/src/pages/Review/components/FlagContent/index.tsx b/ui/src/pages/Review/components/FlagContent/index.tsx index fd1b0abd..ec2c913d 100644 --- a/ui/src/pages/Review/components/FlagContent/index.tsx +++ b/ui/src/pages/Review/components/FlagContent/index.tsx @@ -178,7 +178,11 @@ const Index: FC<IProps> = ({ refreshCount }) => { (reason?.reason_type !== 60 ? ( <span> {flagItemData?.reason_content}</span> ) : flagItemData.reason_content?.startsWith('http') ? ( - <a href={flagItemData.reason_content} className="alert-exist"> + <a + href={flagItemData.reason_content} + target="_blank" + className="alert-exist" + rel="noreferrer"> <strong> {' '} {t('show_exist', { keyPrefix: 'question_detail' })}
