Prepare user website urls for external link

This commit is contained in:
Ian Philips 2022-04-20 10:13:17 -06:00
parent d6d72aa619
commit 0390ec0f47

View File

@ -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" />