mirror of https://github.com/apache/nifi.git
NIFI-1711 Client-side JS for proxy-friendly URLs. This closes #316
This commit is contained in:
parent
7a5d53b8d3
commit
257590dec3
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue