replace /static/ with url_for()