Skip to main content
edited tags
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284
Source Link
meez
  • 1.3k
  • 2
  • 13
  • 42

Get URL path or node.id in views fields replacement pattern

I need to rewrite my view fields like:

<a href="{{ path }}">
 <div class="card-header">
   <h3 class="card-title">
     {{ title }}   
   </h3> 
 </div>
</a>

But if I click on Add field (in my view), nid, or path are not available? I have to construct my <a> link attribute like above markup. But how do I render the URL path to the node?