fix anchor link

This commit is contained in:
Timothy 2021-01-10 15:19:00 +08:00
parent 9485e332a8
commit 9b8a7253b8

View file

@ -13,7 +13,7 @@ const CustomLink = ({ href, ...rest }) => {
}
if (isAnchorLink) {
return <a {...rest} />
return <a href={href} {...rest} />
}
return <a target="_blank" rel="noopener noreferrer" href={href} {...rest} />