From 796f7b3fff46de32f2747cef5b886720c56f8358 Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 27 Apr 2017 15:17:26 +0700 Subject: [PATCH] Ass slash to start in "cms_asset" for markup mode. --- src/Extension/CmsTwigExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Extension/CmsTwigExtension.php b/src/Extension/CmsTwigExtension.php index d422e58..b049e4f 100644 --- a/src/Extension/CmsTwigExtension.php +++ b/src/Extension/CmsTwigExtension.php @@ -262,7 +262,7 @@ public function spaceless($value) public function cmsAsset($resource) { if ($this->markupMode) { - return $resource; + return '/' . $resource; } return $this->cmsBaseUrl . '/' . $resource;