How do i rewrite path field in views-view-fields.html.twig inside a href tag? i would like to rewrite the value of my view's path field in views-view-fields.html.twig template. I tried the following and the link is messed up.

&lt;a href="{{ fields.path.content }}" alt=""&gt;{{ fields.title.content }}&lt;/a&gt;


my guess is it needs to be written with some type of filter combination and i looked everywhere and can only find examples on how to do this in a node.html.twig file but not in views templates. would somebody kindly advise on how to write this? Many thanks!
Probably because {{ fields.path.content }} actually is &lt;div class="something"&gt;/your/path&lt;/div&gt; and not just /your/path

So try with &lt;a href="{{ fields.path.content|striptags }}" alt=""&gt;

If the above does not work

Try &lt;a href="{{ fields.path.content|raw }}" alt=""&gt;



Another possibility is that if you have Twig Debug turned on, this will screw up your template. Turning the twig debug off will fix it.