Only prepend https if it's not in the original ENS url

This commit is contained in:
Marco van Dijk 2022-03-21 09:37:39 +01:00
parent f1429884f3
commit ae2c5d9529

View File

@ -100,8 +100,11 @@ const OrchInfoViewer = (obj) => {
</div> </div>
} }
if (thisInfo.url) { if (thisInfo.url) {
if (!thisInfo.url.startsWith('http')){
thisInfo.url = "https://" + thisInfo.url;
}
ensUrl = ensUrl =
<a className="selectOrchLight" style={{ cursor: 'alias' }} target="_blank" rel="noopener noreferrer" href={"https://" + thisInfo.url} > <a className="selectOrchLight" style={{ cursor: 'alias' }} target="_blank" rel="noopener noreferrer" href={thisInfo.url} >
<div className="rowAlignLeft"> <div className="rowAlignLeft">
<span>{thisInfo.url}</span> <span>{thisInfo.url}</span>
</div> </div>