From c71839294b6db1664005d039fda6f7ee457d1156 Mon Sep 17 00:00:00 2001 From: Bruno Quaresma Date: Wed, 14 May 2025 08:41:33 -0300 Subject: [PATCH] fix: don't open a window for external apps (#17813) This prevents empty windows like the following to happen: ![image](https://github.com/user-attachments/assets/0a444938-316e-4d48-bdfc-770d1b4b2bf0) --- site/src/modules/apps/useAppLink.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/site/src/modules/apps/useAppLink.ts b/site/src/modules/apps/useAppLink.ts index 9916aaf95f..efaab474e6 100644 --- a/site/src/modules/apps/useAppLink.ts +++ b/site/src/modules/apps/useAppLink.ts @@ -55,6 +55,10 @@ export const useAppLink = ( window.addEventListener("blur", () => { clearTimeout(openAppExternallyFailed); }); + + // External apps don't support open_in since they only should open + // external apps. + return; } switch (app.open_in) {