Commit c99db048 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '271-error-500-on-export-tab' into 'devel_11.0.x'

when opening export tab with session expired redirection is provided

See merge request piotr.gawron/minerva!184
parents fb05c25a 8ac49525
......@@ -162,6 +162,12 @@ ProjectInfoPanel.prototype._createInfoPanelGui = function () {
type: "a",
href: ServerConnector.getServerBaseUrl() + "/export.xhtml?id=" + projectId,
content: '<i class="fa fa-mail-forward">&nbsp;EXPORT',
onclick: function () {
//TODO session expired hack (it should be done on the export.xhtml web page)
if (ServerConnector.getSessionData().getToken() === undefined) {
exportButton.href = ServerConnector.getServerBaseUrl() + "login.xhtml?from=" + encodeURI(exportButton.href);
}
}
});
liElement = Functions.createElement({
type: "li",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment