Drupal shortcuts - link with question mark included When I add a link to shortcut set which looks like this:

admin/work?date_filter

shortcut module changes this question mark sign "?" into this "%3F" and this link doesn't work anymore. I believe I can't avoid it - looks like it's a bug, so my question is how to add link as a shortcut programically?
The shortcut module is more strict about valid URLs it can use compared to what the menu module will allow (e.g. no external URLs, no query param). 

One way to circumvent this is to use hook_menu in a custom module to define a valid path that redirects where you want it to go and add that path to your shortcut set.

function MYMODULE_menu() {
  $items['MYMODULE/work'] = array(
    'access arguments' =&gt; array('access content'),
    'page callback' =&gt; 'drupal_goto',
    'page arguments' =&gt; array('admin/work', array('query' =&gt; array('date_filter' =&gt; 'XXX'))),
    'type' =&gt; MENU_CALLBACK
  );
  return $items;
}


This makes MYMODULE/work a valid path for your shortcut set.