TODO: Use # here...but out of any reason it gets encoded to %23 in html
what were you trying to do?
an URL fragment?
the function t encodes everything to HTML, but can handle a 'fragment' $option

Comments

eugenmayer’s picture

Status: Active » Needs work

Oh, well thats great. Thanks for the information...wasnt aware of that..will include that!

eugenmayer’s picture

Hmm after looking into it, i cant see you point.

i mean then l($label,'#',array('fragment'=>true)) will not work it will result in a link with an encoded destination instead of #

arhak’s picture

no, fragment is not boolean

l(t('the text'), 'some/relative/path', array('fragment' => 'anchor_name'))
will result in <a href="some/relative/path#anchor_name">the text</a>

the $option array also allows 'absolute' => true for absolute path

eugenmayer’s picture

Thanks, will implement that!

eugenmayer’s picture

Status: Needs work » Fixed

fixed in 2.2

eugenmayer’s picture

released in 2.2

eugenmayer’s picture

Status: Fixed » Closed (fixed)