diff --git a/src/ui/main/serverView/index.ts b/src/ui/main/serverView/index.ts index 806bb1968f..0b8980fbb4 100644 --- a/src/ui/main/serverView/index.ts +++ b/src/ui/main/serverView/index.ts @@ -176,6 +176,9 @@ const initializeServerWebContentsAfterAttach = ( webviewSession.on('will-download', (_event, item) => { if (item.getFilename().endsWith('.md')) { const downloadUrl = item.getURL(); + // Only intercept for viewer URLs; allow normal downloads to proceed. + // Rocket.Chat server appends 'download=' for view actions vs. download actions. + if (!downloadUrl.endsWith('download=')) return; item.cancel(); dispatch({ type: SERVER_DOCUMENT_VIEWER_OPEN_URL,