Prepare user website urls for external link
This commit is contained in:
parent
d6d72aa619
commit
0390ec0f47
|
@ -88,7 +88,10 @@ export function UserPage(props: { user: User; currentUser?: User }) {
|
|||
<Col className="sm:flex-row sm:gap-4">
|
||||
{user.website && (
|
||||
<SiteLink
|
||||
href={user.website.replace('https://manifold.markets/', '')}
|
||||
href={
|
||||
'https://' +
|
||||
user.website.replace('http://', '').replace('https://', '')
|
||||
}
|
||||
>
|
||||
<Row className="items-center gap-1">
|
||||
<LinkIcon className="h-4 w-4" />
|
||||
|
|
Loading…
Reference in New Issue
Block a user