Fix links beginning with https

This commit is contained in:
James Grugett 2022-05-17 17:11:15 -04:00
parent a1c3a5e569
commit be9df7bcd8

View File

@ -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()