NIFI-1711 Client-side JS for proxy-friendly URLs. This closes #316

This commit is contained in:
James Wing 2016-03-31 10:58:02 -07:00 committed by Matt Gilman
parent 7a5d53b8d3
commit 257590dec3
1 changed files with 1 additions and 2 deletions

View File

@ -56,7 +56,6 @@
}
});
var url = $$('#requestUrl').text();
var ref = $$('#ref').text();
// create the parameters
@ -129,6 +128,7 @@
contentParameter['access_token'] = uiExtensionToken;
}
var url = window.location.origin + window.location.pathname;
window.location.href = url + '?' + $$.param($$.extend(contentParameter, params));
});
}
@ -141,7 +141,6 @@
<span id="ref" class="hidden"><%= org.apache.nifi.util.EscapeUtils.escapeHtml(request.getParameter("ref")) %></span>
<span id="clusterNodeId" class="hidden"><%= request.getParameter("clusterNodeId") == null ? "" : org.apache.nifi.util.EscapeUtils.escapeHtml(request.getParameter("clusterNodeId")) %></span>
<span id="mode" class="hidden"><%= request.getParameter("mode") == null ? "" : org.apache.nifi.util.EscapeUtils.escapeHtml(request.getParameter("mode")) %></span>
<span id="requestUrl" class="hidden"><%= org.apache.nifi.util.EscapeUtils.escapeHtml(request.getRequestURL().toString()) %></span>
<div id="content-viewer-message-dialog">
<div class="dialog-content" style="margin-top: -20px;">
<div id="content-viewer-message"></div>