Mercurial > piecrust2
diff piecrust/admin/views/sources.py @ 935:7ecb946bfafd
admin: Lots of fixes for running the admin panel in a WSGI server.
- Use new source APIs in the dashboard to open WIP files.
- Fixed broken/outdated code in some views.
- Fixed cases when Flask is not running at the root URL by using the
`SCRIPT_NAME` variable somewhat more properly.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 04 Oct 2017 09:15:16 -0700 |
parents | dcdec4b951a1 |
children | 4c69935ca415 |
line wrap: on
line diff
--- a/piecrust/admin/views/sources.py Wed Oct 04 09:11:58 2017 -0700 +++ b/piecrust/admin/views/sources.py Wed Oct 04 09:15:16 2017 -0700 @@ -27,7 +27,7 @@ 'tags': p.get('tags', []), 'category': p.get('category'), 'source': source_name, - 'url': url_for('.edit_page', uri=p['slug']) + 'url': url_for('.edit_page', url=p['rel_url']) } data['pages'].append(page_data)