From da22ed27d9e52e45c11822b83c67d96e3cf32a88 Mon Sep 17 00:00:00 2001 From: timwessman Date: Thu, 21 Nov 2024 15:44:14 +0200 Subject: [PATCH] fix: refactor --- site/src/components/layout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'))