diff --git a/src/app/[locale]/blog/[slug]/page.tsx b/src/app/[locale]/blog/[slug]/page.tsx index 2ac29ad..7df83f1 100644 --- a/src/app/[locale]/blog/[slug]/page.tsx +++ b/src/app/[locale]/blog/[slug]/page.tsx @@ -102,12 +102,15 @@ const components: PortableTextComponents = { const href = getSafeHref(value?.href) if (!href) return <>{children} + // Only links to other sites open in a new tab, not mailto: or links + // within this site + const isExternal = /^https?:\/\//i.test(href) + return ( {children} diff --git a/src/components/page-sections/contact.tsx b/src/components/page-sections/contact.tsx index 08d61cd..12e9035 100644 --- a/src/components/page-sections/contact.tsx +++ b/src/components/page-sections/contact.tsx @@ -22,9 +22,7 @@ const Contact = () => {
- - {t("email")} - + {t("email")}