fix links in embeds
This commit is contained in:
parent
468efaf34e
commit
dd47bc673d
1 changed files with 2 additions and 1 deletions
|
@ -128,10 +128,11 @@ const Button = forwardRef<any, {}>((props: Props, ref: any) => {
|
|||
{iconRight && <Icon icon={iconRight} iconColor={iconColor} size={size} />}
|
||||
</span>
|
||||
);
|
||||
|
||||
// TODO: replace the below with an outbound link tracker for matomo
|
||||
if (href) {
|
||||
return (
|
||||
<a href={href} className={combinedClassName}>
|
||||
<a target="_blank" rel="noopener noreferrer" href={href} className={combinedClassName} onClick={onClick}>
|
||||
{content}
|
||||
</a>
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue