0

im coming up against somthing kinda odd.

If I use redactor to put a link on a page it adds part of that link to the top of the document like it is being output there.

enter image description here

I have wrote this type of code before so im not sure what it is that is causing this.

Code to render the subheading:

{% if block.subheading is defined and block.subheading is not empty %}
  {# sanatize subheading #}
  {% set xyz = block.subheading %}
  {{ xyz }}
{% endif %}

This is the rendered HTML

enter image description here

This only happens when I have a link in the redactor field -

enter image description here

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.