Print image field path in views-view-fields--key-projects.html.twig I am working with Drupal 8 and trying to print some fields through a twig file.

Created:


A view (format:grid)
A content type (fields: title, body image)
Contents


File working on: 


views-view-fields--[machine-name].html.twig


To Do: 


How can I print the path of the image in the content?
How can I print the path of the node/content on a Read More link?
To get the path of an image in a view, use the image format 'URL to Image' in the field setup. I have not found a really good way to get the site absolute, rather than relative url, but prefixing the returned value in a rewrite block with {{ url'(&lt;front&gt;') }} is almost there:

{{ url'(&lt;front&gt;') }}{{ field_image }}


To use that in a different field (content), mark it 'Excluded from display' and then reference that field using a rewrite in another field, or using a twig field template.