How do I output the link to the content? In a view, I've got a field set up to output the link to the content.



I'm not sure how to reference it in my views-view-fields.html.twig file. I'm referencing all of the other fields values properly as they all work, but that main anchor link just isn't coming out. What is the proper syntax?

 &lt;a href="{{ fields.link_to_content.value }} "&gt;&lt;!--start smallbox link--&gt;
 &lt;div style="background-color:grey" class="smallestboxes"&gt;&lt;!--start small box 2::::image 1st then text--&gt;
 &lt;div class="container"&gt;&lt;!--start container--&gt;
 &lt;div class="content"&gt;&lt;!--start content div--&gt;
 &lt;div class="content-overlay" id="clienthover"&gt;&lt;/div&gt;
 {{ fields.uri.content }}
 &lt;div class="content-details fadeIn-bottom" id="worktext"&gt;&lt;!--start fade in--&gt;
 &lt;h1&gt;{{fields.field_work_page_tagline.content}}&lt;/h1&gt;
 &lt;p&gt;{{fields.title.content}}&lt;/p&gt;
 &lt;/div&gt;&lt;!--end fade in--&gt;
 &lt;/div&gt;&lt;!--end content div--&gt;
 &lt;/div&gt;&lt;!--end container--&gt;
 &lt;/div&gt;&lt;!--end smallest box 2--&gt;&lt;/a&gt;
This works for me in views-view-fields.html.twig

{{ fields.view_node.content }}


The code above will directly display the value of "Content: Link to Content".

Hope this helps.