I want to get <a href="http://site.ru/node/123">New product</a>
from l()
, and I
call it as l('New product', 'node/123')
, but this function generates a URL that is not absolute.
How can I generate an absolute URL with l()
?
You can make a link absolute with:
l(t('New product'), 'node/123', array('absolute' => TRUE));