From fb47f8221fd7bfb6bd9703873d255c435a52a9d8 Mon Sep 17 00:00:00 2001 From: Reinaldo Neto Date: Wed, 1 Mar 2023 12:11:02 -0300 Subject: [PATCH] minor tweak --- app/lib/methods/helpers/addProtocol.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/lib/methods/helpers/addProtocol.ts b/app/lib/methods/helpers/addProtocol.ts index cbdd1b9c0..8688bbc64 100644 --- a/app/lib/methods/helpers/addProtocol.ts +++ b/app/lib/methods/helpers/addProtocol.ts @@ -1,3 +1,5 @@ +// If the link does not have the protocol at the beginning, we are inserting https as the default, +// since by conversion the most used is the secure protocol, with the same behavior as the web. const addProtocol = (url: string): string => { if (!url.toLowerCase().startsWith('http')) { return `https://${url.replace('//', '')}`;