Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix - incorrect base uri document download #987

Closed
wants to merge 1 commit into from

Conversation

Rick-Ritense
Copy link
Contributor

Fixed the base uri for document download. In Amsterdam the application is not correctly using the base uri of the backend but the one from the frontend thus failing the document download (instead the index.html is downloaded)

Fixed the base uri for document download. In Amsterdam the application is not correctly using the base uri of the backend but the one from the frontend. Thus failing the document download (instead the index.html is downloaded)
@@ -293,7 +297,7 @@ export class DossierDetailTabDocumentenApiDocumentsComponent implements OnInit,

private downloadDocument(relatedFile: DocumentenApiRelatedFile, forceDownload: boolean): void {
this.downloadService.downloadFile(
`/api/v1/documenten-api/${relatedFile.pluginConfigurationId}/files/${relatedFile.fileId}/download`,
this.getApiUrl(`/v1/documenten-api/${relatedFile.pluginConfigurationId}/files/${relatedFile.fileId}/download`),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You now solved it in the component, but can you solve this in DownloadService itself?

@mbritense mbritense closed this Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants