def METHOD_NAME(rec):
    label = find_curve_label(rec)
    if label:
        curve_url = ''
        if rec['g'] == 1:
            curve_url += 'EllipticCurve'
            if rec['base_field'] == [-1, 1]: # over QQ
                curve_url += '/Q'
                label_spl = label.split(".")
                curve_url += '/%s' % label_spl[0] # conductor
                curve_url += '/%s/%s' % re.match(r"(\D+)(\d+)", label_spl[1]).groups() # isog class and isomorphism index
            else: # over number field
                label_spl = label.split("-")
                curve_url += "/%s/%s" % (label_spl[0], label_spl[1]) # field, conductor
                curve_url += '/%s/%s' % re.match(r"(\D+)(\d+)", label_spl[2]).groups() # isog class and isomorphism index
        if rec['g'] == 2:
            curve_url += 'Genus2Curve'
            if rec['base_field'] == [-1, 1]:
                curve_url += '/Q'
                curve_url += '/%s' % label.replace(".","/")
        return curve_url