From 5f3b5600b4c7738cc40cb50269cf5280b2329292 Mon Sep 17 00:00:00 2001 From: Declan Chidlow <84255570+DeclanChidlow@users.noreply.github.com> Date: Fri, 27 Dec 2024 15:36:15 +0800 Subject: [PATCH] Don't add /download to URL in Attachment Actions --- .../common/messaging/attachments/AttachmentActions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/common/messaging/attachments/AttachmentActions.tsx b/src/components/common/messaging/attachments/AttachmentActions.tsx index b6e5699d..8a4fe575 100644 --- a/src/components/common/messaging/attachments/AttachmentActions.tsx +++ b/src/components/common/messaging/attachments/AttachmentActions.tsx @@ -27,7 +27,7 @@ export default function AttachmentActions({ attachment }: Props) { const url = client.generateFileURL(attachment); const open_url = `${url}/${filename}`; - const download_url = url?.replace("attachments", "attachments/download"); + const download_url = url; const filesize = determineFileSize(size);