diff --git a/packages/core/src/lib/util/media.util.ts b/packages/core/src/lib/util/media.util.ts index 99e2ac65..a8411037 100644 --- a/packages/core/src/lib/util/media.util.ts +++ b/packages/core/src/lib/util/media.util.ts @@ -306,6 +306,8 @@ export function selectMediaFilePublicPath( if (mediaPath.startsWith(mediaFolder)) { return mediaPath.replace(mediaFolder, publicFolder); + } else if (mediaPath.startsWith(trim(mediaFolder, '/'))) { + return mediaPath.replace(trim(mediaFolder, '/'), publicFolder); } return mediaPath;