From 8532a336db114508a5341de3d3e054dd76f75fe6 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Fri, 10 Apr 2026 18:20:37 -0700 Subject: [PATCH] fix: remove decorateURL from default_app (#50898) remove decorateURL from default_app Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Michaela Laurencin <35157522+mlaurencin@users.noreply.github.com> --- default_app/default_app.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/default_app/default_app.ts b/default_app/default_app.ts index 6bf6d7716b..93712f9b4d 100644 --- a/default_app/default_app.ts +++ b/default_app/default_app.ts @@ -58,13 +58,6 @@ app.whenReady().then(() => { Menu.setApplicationMenu(Menu.buildFromTemplate(template)); }); -function decorateURL (url: string) { - // safely add `?utm_source=default_app - const parsedUrl = new URL(url); - parsedUrl.searchParams.append('utm_source', 'default_app'); - return parsedUrl.toString(); -} - // Find the shortest path to the electron binary const absoluteElectronPath = process.execPath; const relativeElectronPath = path.relative(process.cwd(), absoluteElectronPath); @@ -116,7 +109,7 @@ async function createWindow (backgroundColor?: string) { mainWindow.on('ready-to-show', () => mainWindow!.show()); mainWindow.webContents.setWindowOpenHandler(details => { - shell.openExternal(decorateURL(details.url)); + shell.openExternal(details.url); return { action: 'deny' }; });