How do i rewrite path field in views-view-fields.html.twig inside a href tag?
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.