{% load i18n %} {% load wagtailadmin_tags %} {% comment %} Expects a 'linkurl' parameter to use as the base URL, which may be a URL route name (must be reverse-resolvable with no arguments) or a direct URL path. If omitted, links will be given an href of the form "?p=123", implicitly preserving the current URL path. {% endcomment %} {% resolve_url linkurl as url_path %}