?
and =
will be used as parts in my url. In generating the url, I use
<?php echo l('node/'. $someID .'/delete?destination=chapter/'. $anotherID);?>
. When I check on Firebug
, the href
attribute of the link is not the usual url
, instead of having ?
, it is being replaced with %3F
and =
is being replaced with %3D
. How do I fix this?
l()
documentation here: api.drupal.org/api/drupal/includes%21common.inc/function/l/6 and the underlyingurl()
documentation here: api.drupal.org/api/drupal/includes%21common.inc/function/url/6 to put thequery string
in the$options
array where it belongs. Otherwisel()
is going to mangle it up as you are seeing in its zeal to create a safe link. You can also investigate$html
set toTRUE
there if you want to go your current route. – Jimajamma Mar 7 '13 at 19:26