def METHOD_NAME(type):
    """."""
    values = request.args.to_dict()
    type, subtype = ZENODO_TYPE_SUBTYPE_LEGACY.get(type, ('', None))
    values['type'] = type
    if subtype:
        values['subtype'] = subtype
    return redirect(url_for('invenio_search_ui.search', **values))