From fa174891835d7b60414e08a428c96e90959a9604 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 20 Sep 2021 16:48:10 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Change=20anchor=20"link"=20condi?= =?UTF-8?q?tions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/Anchor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/common/Anchor.tsx b/src/components/common/Anchor.tsx index 4ff2baf..39fd792 100644 --- a/src/components/common/Anchor.tsx +++ b/src/components/common/Anchor.tsx @@ -23,7 +23,7 @@ export function Anchor({displayStyle, href, ...props}: AnchorProps): JSX.Element if(!displayStyle) { if(href) { // noinspection HttpUrlsUsage - if(href.startsWith("http://") || href.startsWith("https://")) { + if(href.startsWith("http://") || href.startsWith("https://") || href.startsWith("/") || !href.includes(":")) { displayStyle = "link" } else {