@register.simple_tag(takes_context=True)
def routablepageurl(context, page, url_name, *args, **kwargs):
 request = context[u'request']
 base_url = page.relative_url(request.site)
 routed_url = page.reverse_subpage(url_name, args=args, kwargs=kwargs)
 return (base_url + routed_url)

@ register . simple_tag ( takes_context = True ) def routablepageurl ( context , page , url_name , * args , ** kwargs ) : request = context [ u'request' ] base_url = page . relative_url ( request . site ) routed_url = page . reverse_subpage ( url_name , args = args , kwargs = kwargs ) return ( base_url + routed_url )
routablepageurl is similar to pageurl .