I am trying to use a template that contains a link such as this:
<a href="{% url search query,page.previous_page_number %}">previous</a>
I am trying to use it in multiple contexts; in other words, the URL alias "search" needs to point to a different target, depending on the view that renders the template.
Is there a way to pass such an alias to the template, such that the following (or similar) works?:
direct_to_template(request, 'my_template.html', {'search': my_url_alias})