Skip to content

Commit

Permalink
Ass slash to start in "cms_asset" for markup mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
nilov authored Apr 27, 2017
1 parent fce4b9e commit 796f7b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extension/CmsTwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public function spaceless($value)
public function cmsAsset($resource)
{
if ($this->markupMode) {
return $resource;
return '/' . $resource;
}

return $this->cmsBaseUrl . '/' . $resource;
Expand Down

0 comments on commit 796f7b3

Please sign in to comment.