# HG changeset patch # User Goffi # Date 1548530124 -3600 # Node ID 3c7a64adfd42292c8e364e0868ddfbf60d04cbae # Parent 02afab1b15c58365c2fb5cb08f49801e54ab48f5 pages: use absolute path for build_path + added page_url to template (which is getURL() without argument) diff -r 02afab1b15c5 -r 3c7a64adfd42 libervia/server/pages.py --- a/libervia/server/pages.py Sat Jan 26 20:14:09 2019 +0100 +++ b/libervia/server/pages.py Sat Jan 26 20:15:24 2019 +0100 @@ -1116,9 +1116,10 @@ return self.host.renderer.render( self.template, + page_url=self.getURL(), media_path=u"/" + C.MEDIA_DIR, cache_path=session_data.cache_dir, - build_path=C.BUILD_DIR + u"/", + build_path=u"/" + C.BUILD_DIR + u"/", main_menu=self.main_menu, **template_data) @@ -1314,9 +1315,10 @@ return self.host.renderer.render( template, - media_path="/" + C.MEDIA_DIR, + page_url=self.getURL(), + media_path=u"/" + C.MEDIA_DIR, cache_path=session_data.cache_dir, - build_path=C.BUILD_DIR + u"/", + build_path=u"/" + C.BUILD_DIR + u"/", main_menu=self.main_menu, **template_data )