Skip to content
Snippets Groups Projects
Commit fee273da authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-7285: Fix issue where image does not show with custom size and original image

parent c6f0d34a
No related branches found
No related tags found
1 merge request!264ISTWCMS-7285: Fix issue where image does not show with custom size and original image
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment