Skip to content

Commit

Permalink
NIFI-1711 Client-side JS for proxy-friendly URLs. This closes apache#316
Browse files Browse the repository at this point in the history
  • Loading branch information
jvwing authored and mcgilman committed May 9, 2016
1 parent 7a5d53b commit 257590d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
}
});
var url = $$('#requestUrl').text();
var ref = $$('#ref').text();
// create the parameters
Expand Down Expand Up @@ -129,6 +128,7 @@
contentParameter['access_token'] = uiExtensionToken;
}
var url = window.location.origin + window.location.pathname;
window.location.href = url + '?' + $$.param($$.extend(contentParameter, params));
});
}
Expand All @@ -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>
Expand Down

0 comments on commit 257590d

Please sign in to comment.