From d299d515d7d8a21e2cf09381aab0fe4be0d6e52a Mon Sep 17 00:00:00 2001 From: Hamza HRAMCHI <hamza.hramchi@xelians.fr> Date: Tue, 1 Feb 2022 17:46:49 +0100 Subject: [PATCH] FIX #19466 TIME 0:10 update url to download signed document --- src/frontend/app/viewer/document-viewer.component.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/frontend/app/viewer/document-viewer.component.ts b/src/frontend/app/viewer/document-viewer.component.ts index 64eee13d0e4..e50e18195be 100755 --- a/src/frontend/app/viewer/document-viewer.component.ts +++ b/src/frontend/app/viewer/document-viewer.component.ts @@ -806,12 +806,11 @@ export class DocumentViewerComponent implements OnInit, OnDestroy { (data: any) => { if (data.encodedDocument) { this.isSigned = this.file.subinfos.signedDocVersions; - const fileToDownload: string = this.file.subinfos.signedDocVersions || this.file.subinfos.commentedDocVersions ? 'content' : 'originalContent'; - this.file.contentMode = 'route'; + const fileToDownload: string = this.file.subinfos.signedDocVersions || this.file.subinfos.commentedDocVersions ? 'originalContent?signedVersion=true&mode=base64' : 'originalContent?mode=base64'; this.file.contentMode = 'route'; this.file.name = `${data.filename}`; this.file.format = data.originalFormat; this.file.signatoryId = data.signatoryId; - this.file.content = `../rest/resources/${resId}/${fileToDownload}?mode=base64`; + this.file.content = `../rest/resources/${resId}/${fileToDownload}`; this.file.contentView = `../rest/resources/${resId}/content?mode=base64`; this.file.src = this.base64ToArrayBuffer(data.encodedDocument); this.loading = false; -- GitLab