web/views/basetemplates.py
branchstable
changeset 7075 4751d77394b1
parent 7071 db7608cb32bc
parent 7069 8bf2337a6f3b
child 7428 5338d895b891
--- a/web/views/basetemplates.py	Thu Mar 10 15:18:22 2011 +0100
+++ b/web/views/basetemplates.py	Fri Mar 11 09:47:09 2011 +0100
@@ -156,7 +156,7 @@
         lang = self._cw.lang
         self.write_doctype()
         # explictly close the <base> tag to avoid IE 6 bugs while browsing DOM
-        w(u'<base href="%s"></base>' % xml_escape(self._cw.base_url()))
+        self._cw.html_headers.define_var('BASE_URL', self._cw.base_url())
         w(u'<meta http-equiv="content-type" content="%s; charset=%s"/>\n'
           % (content_type, self._cw.encoding))
         w(u'\n'.join(additional_headers) + u'\n')