diff --git a/site/src/components/layout.js b/site/src/components/layout.js index 5b0355201a..089959bf95 100644 --- a/site/src/components/layout.js +++ b/site/src/components/layout.js @@ -54,7 +54,7 @@ const fixUrlExceptions = (href, version) => { const hrefWithVersion = (href, version, withoutPrefix = false) => { const hrefWithFixedExceptions = fixUrlExceptions(href, version); - if (!version || version === '' || hrefWithFixedExceptions === '' + if (!version || hrefWithFixedExceptions === '' || hrefWithFixedExceptions.startsWith('mailto:') || hrefWithFixedExceptions.startsWith('#') || hrefWithFixedExceptions.startsWith('http'))