Hi @idc-dev_idc-dev,
Unfortunately you can not edit the front-end portion of the admin panel that way anymore in v4.
If you would like to implement this change in the UI, instead of the API, then you would have to create a custom plugin, and replace the media library component.
Could you change the function in the code that you have. I believe it should fix the problem.
// Parser function
function prefixUrl(data, url = process.env['UPLOAD_URL'] || 'https://google.com/') {
var formats = data && data.formats && data.formats.thumbnail ? {
thumbnail: data.formats.thumbnail.url.replace('/', url),
large: data.formats.large.url.replace('/', url),
medium: data.formats.medium.url.replace('/', url),
small: data.formats.small.url.replace('/', url),
} : data.formats
return {
...data, url: data.url.replace('/', url), formats
}
}