From d788ab9e55d8ac473b92976b8a1ed1177cce9348 Mon Sep 17 00:00:00 2001 From: Atif Ali Date: Fri, 20 Jun 2025 13:07:20 +0500 Subject: [PATCH] feat: improve AppLink error message for coder:// URLs (#18444) Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com> Co-authored-by: Dean Sheather --- site/src/modules/apps/useAppLink.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/site/src/modules/apps/useAppLink.ts b/site/src/modules/apps/useAppLink.ts index aafd048a7e..daad0d493e 100644 --- a/site/src/modules/apps/useAppLink.ts +++ b/site/src/modules/apps/useAppLink.ts @@ -56,10 +56,17 @@ export const useAppLink = ( (app.url.startsWith("jetbrains-gateway:") || app.url.startsWith("jetbrains:")); + // Check if this is a coder:// URL + const isCoderApp = app.url?.startsWith("coder:"); + if (isJetBrainsApp) { displayError( `To use ${label}, you need to have JetBrains Toolbox installed.`, ); + } else if (isCoderApp) { + displayError( + `To use ${label} you need to have Coder Desktop installed`, + ); } else { displayError(`${label} must be installed first.`); }