Skip to content

Commit

Permalink
Fix: save rel="noopener noreferrer" in editor to prevent Wordpress error
Browse files Browse the repository at this point in the history
This is a workaround for a wordpress bug. See: WordPress/gutenberg#9731 for more information.
  • Loading branch information
dirkjf committed Nov 5, 2020
1 parent 15bebed commit be17a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/src/blocks/Modal/Save.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function Save(props) {
<button type="button" className="btn btn-secondary" data-dismiss="modal">{cancelTitle}</button>
}
{showCta &&
<a href={ctaUrl} target={ctaUrlInNewTab && '_blank'} className="btn btn-primary">{ctaTitle}</a>
<a href={ctaUrl} target={ctaUrlInNewTab && '_blank'} className="btn btn-primary" rel={ctaUrlInNewTab && 'noopener noreferrer'}>{ctaTitle}</a>
}
</div>
}
Expand Down

0 comments on commit be17a1a

Please sign in to comment.