chore: update returned attachement fullPath (#9516)

### Solution

fullPath prop on attachement (when returned by backend) is updated to
'domain + path' (formerly 'path').

Consequently, getFileAbsoluteURI util in front is removed.

closes #8763

---------

Co-authored-by: etiennejouan <jouan.etienne@gmail.com>
This commit is contained in:
Etienne
2025-01-09 19:12:36 +01:00
committed by GitHub
parent 4c8c338316
commit 1f1cac3b00
8 changed files with 11 additions and 32 deletions

View File

@ -23,7 +23,7 @@ export class AttachmentQueryResultGetterHandler
return {
...attachment,
fullPath: `${attachment.fullPath}?token=${signedPayload}`,
fullPath: `${process.env.SERVER_URL}/files/${attachment.fullPath}?token=${signedPayload}`,
};
}
}