This is an automated email from the ASF dual-hosted git repository.

shuai pushed a commit to branch feat/1.3.1/ui
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git


The following commit(s) were added to refs/heads/feat/1.3.1/ui by this push:
     new d1a98b94 fix: report duplicate links in review a  new window opens
d1a98b94 is described below

commit d1a98b942df05a7e14fc8b42a23dfbe0ed3838f1
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' })}

Reply via email to