The output from field--text-with-summary.html.twig gives each inline image a relative url of this form:

<img alt="Image 1" data-entity-type="file" data-entity-uuid="5ed6da76..." src="/sites/default/files/inline-images/image1.jpeg" />

These inline image tags are presumably generated by CKEditor; i.e. they are not fields with which I can use individual twig filters.

I have hacked replacing each relative url with an absolute one in the items array within the render array but these links are overwritten (somewhere) after preprocessing in the final rendering.

What is the correct way to do this?


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.