changeset 1130:8a7d75c18d40

server: fixed front_url_filter in templates renderer
author Goffi <goffi@goffi.org>
date Tue, 18 Sep 2018 21:16:47 +0200
parents e6fe914c3eaf
children 9cf592d1e6aa
files libervia/server/server.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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',