Browse Source

Issue #2833960 by zach.bimson: image_style() should return relative path

8.x-1.x
zach.bimson 8 years ago committed by Chi
parent
commit
f617eb0ed9
  1. 3
      src/TwigExtension.php

3
src/TwigExtension.php

@ -253,7 +253,8 @@ class TwigExtension extends \Twig_Extension {
* in an <img> tag. Requesting the URL will cause the image to be created.
*/
public function imageStyle($path, $style) {
return ImageStyle::load($style)->buildUrl($path);
$url = ImageStyle::load($style)->buildUrl($path);
return file_url_transform_relative($url);
}
}

Loading…
Cancel
Save