From 8ba26943e7b6bacbbdd3f7f52b12573a8f9261b5 Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Mon, 19 May 2025 10:34:19 +0000 Subject: [PATCH] feat(clean_url): whatsapp url --- src/clean_url.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/clean_url.js b/src/clean_url.js index 3b861885..06230a9f 100644 --- a/src/clean_url.js +++ b/src/clean_url.js @@ -49,6 +49,11 @@ const deSafelink = (urlStr) => { url = new URL(url.searchParams.get('to')) } + // WhatsApp + if (url.hostname === 'l.wl.co' && url.pathname === '/l') { + url = new URL(url.searchParams.get('u')) + } + // Google Ads if (url.hostname.endsWith('doubleclick.net') || url.hostname.endsWith('googleadservices.com')) { url = new URL(url.href.replaceAll('&', '&'))