From fee273dae29716f9b8961fe527c0430b9c8918a3 Mon Sep 17 00:00:00 2001 From: Eric Bremner <ebremner@uwaterloo.ca> Date: Thu, 13 Feb 2025 10:10:23 -0500 Subject: [PATCH] ISTWCMS-7285: Fix issue where image does not show with custom size and original image --- src/Plugin/Block/UwCblImage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin/Block/UwCblImage.php b/src/Plugin/Block/UwCblImage.php index 960df81e..ca2bc216 100644 --- a/src/Plugin/Block/UwCblImage.php +++ b/src/Plugin/Block/UwCblImage.php @@ -454,7 +454,7 @@ class UwCblImage extends BlockBase implements ContainerFactoryPluginInterface { $image_info = $this->getImageInfo($this->configuration['image'], 'original'); // Create the URL to the original. - $image_info['url'] = $this->fileUrlGenerator->generate($image_info['dirname'] . '/' . $image_info['basename'])->toString(); + $image_info['uri'] = $this->fileUrlGenerator->generate($image_info['dirname'] . '/' . $image_info['basename'])->toString(); // Set the config for the image. $this->configuration['scaled_image'] = $image_info; -- GitLab