diff --git a/lib/galaxy/webapps/galaxy/controllers/history.py b/lib/galaxy/webapps/galaxy/controllers/history.py
index 0a2b5bc18b3..cdd11c847e1 100644
--- a/lib/galaxy/webapps/galaxy/controllers/history.py
+++ b/lib/galaxy/webapps/galaxy/controllers/history.py
@@ -1130,9 +1130,9 @@ class HistoryController(BaseUIController, SharableMixin, UsesAnnotations, UsesIt
% ({'n': history.name, 's': url_for(controller='history', action="export_archive", id=id, qualified=True)}))
self.queue_history_export(trans, history, gzip=gzip, include_hidden=include_hidden, include_deleted=include_deleted)
url = url_for(controller='history', action="export_archive", id=id, qualified=True)
- return trans.show_message("Exporting History '%(n)s'. You will need to make this history 'accessible' in order to import this to another galaxy sever.
"
+ return trans.show_message("Exporting History '%(n)s'. You will need to make this history 'accessible' in order to import this to another galaxy sever.
"
"Use this link to download the archive or import it to another Galaxy server: "
- "%(u)s" % ({'share': url_for(controller='history', action='sharing'), 'n': history.name, 'u': url}))
+ "%(u)s" % ({'share': url_for('/histories/sharing', id=id), 'n': history.name, 'u': url}))
# TODO: used in this file and index.mako
@web.expose