Resolve https://twitter links properly (#3062)
This commit is contained in:
parent
f62a250ad9
commit
d75c423719
@ -131,7 +131,11 @@ function Identity ({ address, identity }: Props): React.ReactElement<Props> | nu
|
||||
? identity.twitter
|
||||
: (
|
||||
<a
|
||||
href={`https://twitter.com/${identity.twitter as string}`}
|
||||
href={
|
||||
(identity.twitter as string).startsWith('https://twitter.com/')
|
||||
? (identity.twitter as string)
|
||||
: `https://twitter.com/${identity.twitter as string}`
|
||||
}
|
||||
rel='noopener noreferrer'
|
||||
target='_blank'
|
||||
>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user