fix(back-end) base url fix

This commit is contained in:
2026-03-20 11:45:10 +01:00
parent e575021f53
commit fb1a6456e6
2 changed files with 7 additions and 4 deletions

View File

@@ -126,6 +126,9 @@ public class CustomQuoteRequestNotificationService {
}
private String buildLogoUrl() {
return frontendBaseUrl.replaceAll("/+$", "") + "/assets/images/brand-logo-yellow.svg";
String baseUrl = frontendBaseUrl == null || frontendBaseUrl.isBlank()
? "http://localhost:4200"
: frontendBaseUrl;
return baseUrl.replaceAll("/+$", "") + "/assets/images/brand-logo-yellow.svg";
}
}