From ae2c5d9529ac7318a04bbb43a28845edf7387a51 Mon Sep 17 00:00:00 2001 From: Marco van Dijk Date: Mon, 21 Mar 2022 09:37:39 +0100 Subject: [PATCH] Only prepend https if it's not in the original ENS url --- src/components/OrchInfoViewer.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/OrchInfoViewer.js b/src/components/OrchInfoViewer.js index f21a45f..78e2440 100644 --- a/src/components/OrchInfoViewer.js +++ b/src/components/OrchInfoViewer.js @@ -100,8 +100,11 @@ const OrchInfoViewer = (obj) => { } if (thisInfo.url) { + if (!thisInfo.url.startsWith('http')){ + thisInfo.url = "https://" + thisInfo.url; + } ensUrl = - +
{thisInfo.url}