@register.simple_tag(takes_context=True)<EOL>def getReturnPage(context, prior=False):
siteHistory = getattr(context.get('<STR_LIT>',None),'<STR_LIT>',{}).get('<STR_LIT>',{})<EOL>return returnPageHelper(siteHistory,prior=prior)<EOL>
This tag makes it easy to get return links from within a template without
requiring custom logic inside the view.  Just include
{% getReturnPage as returnPage %} and then reference {{ returnPage.url }}
and {{ returnPage.title }} as needed.