diff --git a/src/composables/downloadFile.js b/src/composables/downloadFile.js index ef1a1093e..4588265a2 100644 --- a/src/composables/downloadFile.js +++ b/src/composables/downloadFile.js @@ -9,7 +9,7 @@ const token = getTokenMultimedia(); export async function downloadFile(id, model = 'dms', urlPath = '/downloadFile', url) { const appUrl = (await getUrl('', 'lilium')).replace('/#/', ''); const response = await axios.get( - url ?? `${appUrl}/${model}/${id}${urlPath}?access_token=${token}`, + url ?? `${appUrl}/api/${model}/${id}${urlPath}?access_token=${token}`, { responseType: 'blob' } );