Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Make the linked versions open a new tab, turt2live complained :P #910

Merged
merged 2 commits into from
May 23, 2017

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented May 19, 2017

No description provided.

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@matrixbot
Copy link
Member

Can one of the admins verify this patch?

@@ -46,7 +46,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" href={url}>{token}</a>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to be very careful with target="_blank" as per https://mathiasbynens.github.io/rel-noopener/ (tl;dr, add rel="noopener")

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<a target="_blank" rel="noopener"> is what you want

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh wow, shows how tired I am xD

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@t3chguy t3chguy force-pushed the t3chguy/version_anchor_newtab branch from 591e1b6 to a10c2fa Compare May 23, 2017 12:12
@dbkr dbkr merged commit 46bb29a into develop May 23, 2017
@t3chguy t3chguy deleted the t3chguy/version_anchor_newtab branch May 24, 2017 10:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants