Added a secondary link through code. Why is my href URL getting decoded?
Try using urlencode ...

$secondary_links['menu_custom_item'] = array(  
                      'attributes' =&gt; array( 'title' =&gt; $label ),
                      'alter'   =&gt; 1,
                      'href'    =&gt; urlencode($uri),
                      'title'   =&gt; $label,
                      'language'  =&gt; 'en' 
                );