# HG changeset patch # User Ludovic Chabant # Date 1425546703 28800 # Node ID 9f3fc17e71e1df0f4885e48dc3b44445b3ca5c93 # Parent 9b75b49a4084d273079ce9efe16994a69278926d data: Temporary hack for asset URLs. diff -r 9b75b49a4084 -r 9f3fc17e71e1 piecrust/data/assetor.py --- a/piecrust/data/assetor.py Thu Mar 05 00:27:01 2015 -0800 +++ b/piecrust/data/assetor.py Thu Mar 05 01:11:43 2015 -0800 @@ -26,7 +26,9 @@ { '%path%': rel_assets_path, '%uri%': uri}) - return base_url.rstrip('/') + '/' + # TEMP HACK + # TODO: looks like we can get here with differently formatted URLs... :( + return app.config.get('site/root') + base_url.strip('/') + '/' class Assetor(object):