fix: correct open/download link behaviour

pull/1146/head
Asraye 2025-09-04 04:23:09 +10:00 committed by GitHub
parent 9d82873d2a
commit 33e686ab1b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -26,8 +26,8 @@ export default function AttachmentActions({ attachment }: Props) {
const { filename, metadata, size } = attachment; const { filename, metadata, size } = attachment;
const url = client.generateFileURL(attachment); const url = client.generateFileURL(attachment);
const open_url = `${url}/${filename}`; const open_url = url;
const download_url = url; const download_url = `${url}/${filename}`;
const filesize = determineFileSize(size); const filesize = determineFileSize(size);