diff --git a/src/frontend/app/viewer/document-viewer.component.ts b/src/frontend/app/viewer/document-viewer.component.ts index 64eee13d0e4ed0f31016872fb0c699a3a9536803..e50e18195bed0f6a76c7c195f80328f61a8e2607 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;