Printing out path from views - /drupal/ appears twice
&lt;?php print l('&lt;span class="link-spanner"&gt;&lt;/span&gt;',
'node/' . $view-&gt;result[$id]-&gt;_field_data['nid']['entity']-&gt;vid, 
array ('html' =&gt; TRUE)); ?&gt;


Here is the final solution.

It will add the NID on the end of node/ and create the internal path "node/x". If you're using Pathauto this will still work.