<s> from __future__ import absolute_import , unicode_literals <EOL> from django import template <EOL> register = template . Library ( ) <EOL> @ register . simple_tag ( takes_context = True ) <EOL> def routablepageurl ( context , page , url_name , * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> request = context [ '<STR_LIT>' ] <EOL> base_url = page . relative_url ( request . site ) <EOL> routed_url = page . reverse_subpage ( url_name , args = args , kwargs = kwargs ) <EOL> return base_url + routed_url </s>
