fix links in embeds

This commit is contained in:
Sean Yesmunt 2020-06-04 10:56:57 -04:00
parent 468efaf34e
commit dd47bc673d

View file

@ -128,10 +128,11 @@ const Button = forwardRef<any, {}>((props: Props, ref: any) => {
{iconRight && <Icon icon={iconRight} iconColor={iconColor} size={size} />} {iconRight && <Icon icon={iconRight} iconColor={iconColor} size={size} />}
</span> </span>
); );
// TODO: replace the below with an outbound link tracker for matomo // TODO: replace the below with an outbound link tracker for matomo
if (href) { if (href) {
return ( return (
<a href={href} className={combinedClassName}> <a target="_blank" rel="noopener noreferrer" href={href} className={combinedClassName} onClick={onClick}>
{content} {content}
</a> </a>
); );