From 5aafabb0aff01127ffd064e44266754e581e5195 Mon Sep 17 00:00:00 2001 From: yushen Date: Thu, 4 Jun 2026 13:57:37 +0800 Subject: [PATCH] MUL-2976: resolve server-relative attachment download_url on Desktop and Mobile When the backend has no CloudFront signer configured, attachment metadata returns a server-relative `download_url` like `/api/attachments/{id}/download`. The CLI already handles relative URLs but the UI clients did not, leaving the unified-endpoint path failing on Desktop downloads + Mobile Linking + RN image previews. Desktop renderer (web + Electron): - packages/views/editor/use-download-attachment.ts: resolve via `resolvePublicFileUrl` from @multica/core/workspace/avatar-url before handing to Electron's `downloadURLSafely` bridge or to the web placeholder/last-resort window.location redirect. - packages/views/editor/attachment-preview-modal.tsx: resolve at `normalize()` so ``/`