diff --git a/warehouse/src/main/java/warehouse/domain/image/converter/ImageConverter.java b/warehouse/src/main/java/warehouse/domain/image/converter/ImageConverter.java index ff41ad92..e6e20dea 100644 --- a/warehouse/src/main/java/warehouse/domain/image/converter/ImageConverter.java +++ b/warehouse/src/main/java/warehouse/domain/image/converter/ImageConverter.java @@ -125,9 +125,8 @@ public ImageInfo(ImageRequest request, String uploadDir) { this.extension = ImageUtils.subStringExtension( Objects.requireNonNull(this.originalFileName)); this.fileName = StringUtils.cleanPath(this.serverName + this.extension); - this.imageUrl = ServletUriComponentsBuilder.fromCurrentContextPath() - .scheme("https") - .path(uploadDir + fileName) + this.imageUrl = ServletUriComponentsBuilder.fromHttpUrl("https://baobab.run") + .path("warehouse" + uploadDir + fileName) .toUriString(); } }