@core_helper
def add_url_param(alternative_url=None, controller=None, action=None, extras=None, new_params=None):
 params_nopage = [(k, v) for (k, v) in request.params.items() if (k != 'page')]
 params = set(params_nopage)
 if new_params:
  params |= set(new_params.items())
 if alternative_url:
  return _url_with_params(alternative_url, params)
 return _create_url_with_params(params=params, controller=controller, action=action, extras=extras)

@ core_helper def add_url_param ( alternative_url = None , controller = None , action = None , extras = None , new_params = None ) : params_nopage = [ ( k , v ) for ( k , v ) in request . params . items ( ) if ( k != 'page' ) ] params = set ( params_nopage ) if new_params : params |= set ( new_params . items ( ) ) if alternative_url : return _url_with_params ( alternative_url , params ) return _create_url_with_params ( params = params , controller = controller , action = action , extras = extras )
adds extra parameters to existing ones controller action & extras are used to create the base url via :py:func:~ckan .