Replacement Tokens in View Template
Can you get the node id you are aiming for? If so, try using drupal_get_path_alias()

$linknid = $fields['field_link_to_content']-&gt;content;

$alias = drupal_get_path_alias('node/' . $linknid);

&lt;a href='&lt;?php print $alias; ?&gt;' style='background-image: url(&lt;?php print $output; ?&gt;);'&gt;&lt;?php print $row-&gt;node_title; ?&gt;&lt;/a&gt;


UPDATE - this is how I did it, based on this answer:

&lt;a href='&lt;?php print drupal_get_path_alias('node/' . $row-&gt;nid); ?&gt;' style='background-image: url(&lt;?php print $output; ?&gt;);'&gt;&lt;?php print $row-&gt;node_title; ?&gt;&lt;/a&gt;