{% autoescape false %}<a href="{{ '{% url' }} {{ link_path }} {{ '%}' }}">{{ text }}</a>{% endautoescape %}

{% autoescape false %}<a href="{{ '{% url' }} {{ link_path }} {{ '%}' }}{{ link_query }}">{{ text }}</a>{% endautoescape %}

Update relative link template to allow query parameters
Update relative link template to allow query parameters
