Merge pull request #910 from matrix-org/t3chguy/version_anchor_newtab

Make the linked versions open a new tab, turt2live complained :P
This commit is contained in:
David Baker 2017-05-23 13:51:40 +01:00 committed by GitHub
commit 46bb29a3af

View file

@ -47,7 +47,7 @@ const gHVersionLabel = function(repo, token='') {
} else {
url = `https://github.com/${repo}/commit/${token.split('-')[0]}`;
}
return <a href={url}>{token}</a>;
return <a target="_blank" rel="noopener" href={url}>{token}</a>;
};
// Enumerate some simple 'flip a bit' UI settings (if any).