diff --git a/lib/galaxy/web/api/histories.py b/lib/galaxy/web/api/histories.py index 59a45da2760..ee1b21b3867 100644 --- a/lib/galaxy/web/api/histories.py +++ b/lib/galaxy/web/api/histories.py @@ -109,6 +109,7 @@ class HistoriesController( BaseAPIController, UsesHistoryMixin ): trans.sa_session.add( new_history ) trans.sa_session.flush() item = new_history.get_api_value(view='element', value_mapper={'id':trans.security.encode_id}) + item['url'] = url_for( 'history', id=item['id'] ) return item @web.expose_api