@register.simple_tag
def filter_link(request, the_filter, the_value, the_text):
    return (filter_url(request, the_filter, the_value), the_text) % '<a href="%s">%s</a>'

# can't believe this isn't in django core...
dataset/ETHPy150Open caseywstark/colab/colab/apps/issues/templatetags/issues_tags.py/filter_link/swapped operands of `%`