This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

phil35776
phil35776

Hi, I have images referenced in my page templates like so -

<img src="{{'assets/images/image.png'|theme}}" alt="">

This displays fine with the 'theme' filter - the image is within the theme directory. However if the page is edited then saved in the CMS, it URL encodes the content so the pipe character (|) in the tag turns into '%7C', which then throws an error when Twig tries to parse the templates.

I should also add the CMS pages are using the Froala WYSIWYG editor.

Is there a way to prevent the URL encoding being added and breaking the template?

Kind regards, Phil

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.