From be9df7bcd888e8988d3c78f3a85669438bc18ae1 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Tue, 17 May 2022 17:11:15 -0400 Subject: [PATCH] Fix links beginning with https --- web/components/site-link.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/components/site-link.tsx b/web/components/site-link.tsx index b4e840cc..86fc6c5c 100644 --- a/web/components/site-link.tsx +++ b/web/components/site-link.tsx @@ -16,6 +16,8 @@ export const SiteLink = (props: { 'z-10 break-words hover:underline hover:decoration-indigo-400 hover:decoration-2', className )} + href={href} + target={href.startsWith('http') ? '_blank' : undefined} style={{ /* For iOS safari */ wordBreak: 'break-word' }} onClick={(e) => { e.stopPropagation()