# HG changeset patch # User Goffi # Date 1537298207 -7200 # Node ID 8a7d75c18d4083266e87a02d89af5e4fa96ddb54 # Parent e6fe914c3eafb21cda051d1f028298032c19d0dc server: fixed front_url_filter in templates renderer diff -r e6fe914c3eaf -r 8a7d75c18d40 libervia/server/server.py --- a/libervia/server/server.py Sat Sep 15 19:23:01 2018 +0200 +++ b/libervia/server/server.py Tue Sep 18 21:16:47 2018 +0200 @@ -1746,6 +1746,7 @@ def _namespacesGetEb(self, failure_): log.error(_(u"Can't get namespaces map: {msg}").format(msg=failure_)) + @template.contextfilter def _front_url_filter(self, ctx, relative_url): template_data = ctx[u'template_data'] return os.path.join(u'/', C.TPL_RESOURCE, template_data.site or u'sat',