def buildfullurl(context, url):
    """Converts relative URL to absolute.
    For example:
        {% buildfullurl article.get_absolute_url %}
    or:
        {% buildfullurl "/custom-url/" %}
    """
    return context.request.build_absolute_uri(url)