Skip to content

Commit

Permalink
In pdf export of attachment trim trailing '/' of url setting
Browse files Browse the repository at this point in the history
  • Loading branch information
reiterl committed Apr 12, 2024
1 parent 6113406 commit 204a66d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,10 @@ export class MotionPdfService {
private createAttachments(motion: ViewMotion): object {
let width = this.pdfDocumentService.pageSize === `A5` ? PDF_A5_POINTS_WIDTH : PDF_A4_POINTS_WIDTH;
width = width - this.pdfDocumentService.pageMarginPointsLeft - this.pdfDocumentService.pageMarginPointsRight;
const instancUrl = this.organizationSettingsService.instant(`url`);
let instancUrl = this.organizationSettingsService.instant(`url`);
if (instancUrl.endsWith(`/`)) {
instancUrl = instancUrl.slice(0, -1);
}

const attachments = [];
attachments.push({
Expand Down

0 comments on commit 204a66d

Please sign in to comment.