I've created a block display view to list recent posts on a page. Which variable can I use inside the views-view-fields.html.twig template file in order to retrieve the link to the post?

<div class="thumbnails thumbnail-style thumbnail-kenburn">
  <div class="thumbnail-img">
    <div class="overflow-hidden">
        {{ fields.field_image.content }}
    <a class="btn-more hover-effect" href="{{ ??? }}">read more +</a>
  <div class="caption">
    <h3>{{ fields.title.content }}</h3>
    {{ fields.body.content }}

1 Answer 1


Add a "Path" field and include it in the view. It should be something like: {field.path.content} You can always format it :D

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.