From 4f84fc8e03b8bab512edb777418f0b98f813557f Mon Sep 17 00:00:00 2001 From: Claudio Schaad Date: Sun, 19 Apr 2026 17:42:25 +0200 Subject: [PATCH] fix: resolve PDF export icons path after moving icons to config/icons/ Icons were moved from wwwroot/icons/ to config/icons/ in the configurable-icons feature, but PdfExportService still referenced the old AppContext.BaseDirectory path. Co-Authored-By: Claude Sonnet 4.6 --- Services/PdfExportService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/PdfExportService.cs b/Services/PdfExportService.cs index c39dcbf..5032a4d 100644 --- a/Services/PdfExportService.cs +++ b/Services/PdfExportService.cs @@ -104,7 +104,7 @@ namespace ShiftScheduler.Services var shift = shiftWithTransport.Shift; if (shift.IsPngIcon) { - var iconPath = Path.Combine(AppContext.BaseDirectory, "wwwroot", "icons", shift.Icon); + var iconPath = Path.Combine(Directory.GetCurrentDirectory(), "config", "icons", shift.Icon); if (File.Exists(iconPath)) { table.Cell().Height(24).Element(CellStyleMiddle).Image(iconPath).FitArea();