$m->connect('search/:search/unsubscribe',
array('action' => 'searchunsub'),
array('search' => Router::REGEX_TAG));
-
$m->connect(':nickname/search-subscriptions',
array('action' => 'searchsubs'),
array('nickname' => Nickname::DISPLAY_FMT));
$id = $this->menuItemID($actionName, $args);
}
- // Add 'q' as a search param, not part of the url path
-
- $url = common_local_url($actionName, array(), $args);
+ if ($actionname == 'searchsub') {
+ // Add 'q' as a search param, not part of the url path
+ $url = common_local_url($actionName, array(), $args);
+ } else {
+ $url = common_local_url($actionName, $args);
+ }
$this->out->menuItem($url,
$label,