diff -r 01c04bbbe7b8 -r a76feec0a861 cubicweb/web/views/basetemplates.py --- a/cubicweb/web/views/basetemplates.py Tue Jun 21 14:13:54 2016 +0200 +++ b/cubicweb/web/views/basetemplates.py Tue Jun 21 16:35:21 2016 +0200 @@ -46,6 +46,8 @@ w(u'') def template_header(self, content_type, view=None, page_title='', additional_headers=()): + self._cw.html_headers.define_var('BASE_URL', self._cw.base_url()) + self._cw.html_headers.define_var('DATA_URL', self._cw.datadir_url) w = self.whead # explictly close the tag to avoid IE 6 bugs while browsing DOM w(u'' % xml_escape(self._cw.base_url()))