l() function notes

<fantomas> Hi. Sorry for asking here, I've got a strange problem. In node teaser template I output URL to this node using $node->path. But this doesn't works for anonymous users - urls resets to /. Where could be the problem?
<fantomas> In other words - should I grant some rights to get $node->path working for anonymous users?
<fantomas> (or its not good idea to use $node->path for getting path the the node? :)
<beeradb_> fantomas: you want to link to 'node/' . $node->nid, using the l() function.
<beeradb_> l?
<Druplicon> l: Format an internal Drupal link. => l($text, $path, $options = array()) => http://api.drupal.org/api/function/l/6
<fantomas>
beeradb_: I think no. I use this code for "image with link": <a href="/<?php print $node->path; ?>"><?php print $node->field_rf_photo[0]['view'] ?></a>
<fantomas> Looks like I am wrong? :)
<beeradb_> you are:)
<fantomas> sorry, to low EXP :)
<beeradb_> fantomas: use the image tag as the first argument to l, and then for the options parameter use array('html' => true)