Merge pull request #2496 from matrix-org/dbkr/target_blank

Add target="_blank" to links that don't have it
This commit is contained in:
David Baker 2019-01-24 18:15:18 +00:00 committed by GitHub
commit 8c412b85ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 6 deletions

View file

@ -605,7 +605,7 @@ module.exports = React.createClass({
<div>
<h3>Referral</h3>
<div className="mx_UserSettings_section">
{ _t("Refer a friend to Riot:") } <a href={href}>{ href }</a>
{ _t("Refer a friend to Riot:") } <a href={href} target="_blank" rel="noopener">{ href }</a>
</div>
</div>
);