Commit 30ff8389 authored by gbyte.co's avatar gbyte.co Committed by gbyte.co

Issue #3060971 by satrece, gbyte.co: Custom base URL does not work for generated images

parent f894f72f
...@@ -215,7 +215,9 @@ abstract class EntityUrlGeneratorBase extends UrlGeneratorBase { ...@@ -215,7 +215,9 @@ abstract class EntityUrlGeneratorBase extends UrlGeneratorBase {
if ($field->getType() === 'image') { if ($field->getType() === 'image') {
foreach ($entity->get($field->getName())->getValue() as $value) { foreach ($entity->get($field->getName())->getValue() as $value) {
$image_data[] = [ $image_data[] = [
'path' => file_create_url(File::load($value['target_id'])->getFileUri()), 'path' => $this->replaceBaseUrlWithCustom(
file_create_url(File::load($value['target_id'])->getFileUri())
),
'alt' => $value['alt'], 'alt' => $value['alt'],
'title' => $value['title'], 'title' => $value['title'],
] ; ] ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment