@core_helper
def remove_url_param(key, value=None, replace=None, controller=None, action=None, extras=None, alternative_url=None):
 if isinstance(key, basestring):
  keys = [key]
 else:
  keys = key
 params_nopage = [(k, v) for (k, v) in request.params.items() if (k != 'page')]
 params = list(params_nopage)
 if value:
  params.remove((keys[0], value))
 else:
  for key in keys:
   [params.remove((k, v)) for (k, v) in params[:] if (k == key)]
 if (replace is not None):
  params.append((keys[0], replace))
 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 remove_url_param ( key , value = None , replace = None , controller = None , action = None , extras = None , alternative_url = None ) : if isinstance ( key , basestring ) : keys = [ key ] else : keys = key params_nopage = [ ( k , v ) for ( k , v ) in request . params . items ( ) if ( k != 'page' ) ] params = list ( params_nopage ) if value : params . remove ( ( keys [ 0 ] , value ) ) else : for key in keys : [ params . remove ( ( k , v ) ) for ( k , v ) in params [ : ] if ( k == key ) ] if ( replace is not None ) : params . append ( ( keys [ 0 ] , replace ) ) if alternative_url : return _url_with_params ( alternative_url , params ) return _create_url_with_params ( params = params , controller = controller , action = action , extras = extras )
remove one or multiple keys from the current parameters .