From 05dca20e8deadd5d261bd296dfe6c1524bf5520f Mon Sep 17 00:00:00 2001 From: Reinaldo Neto Date: Wed, 8 Feb 2023 19:39:22 -0300 Subject: [PATCH] replace double slashs --- app/lib/methods/helpers/openLink.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/methods/helpers/openLink.ts b/app/lib/methods/helpers/openLink.ts index 092d527d4..156a360c7 100644 --- a/app/lib/methods/helpers/openLink.ts +++ b/app/lib/methods/helpers/openLink.ts @@ -38,7 +38,7 @@ const appSchemeURL = (url: string, browser: string): string => { const addProtocol = (url: string): string => { if (!url.toLowerCase().startsWith('http')) { - return `https://${url}`; + return `https://${url.replace('//', '')}`; } return url; };