*/
@Override
public void processAction(WebuiRequestContext context) throws Exception {
PortalRequestContext pcontext = (PortalRequestContext) context;
// String requestURI = pcontext.getRequestURI();
RequestNavigationData requestNavData = pcontext.getNavigationData();
boolean isAjax = pcontext.useAjax();
if (!isAjax) {
if (isAjaxInLastRequest) {
isAjaxInLastRequest = false;
if (requestNavData.equals(lastNonAjaxRequestNavData) && !requestNavData.equals(lastRequestNavData)) {
NodeURL nodeURL = pcontext.createURL(NodeURL.TYPE).setNode(getCurrentSite().getSelectedUserNode());
pcontext.sendRedirect(nodeURL.toString());
return;
}
}
lastNonAjaxRequestNavData = requestNavData;
}
isAjaxInLastRequest = isAjax;
if (!requestNavData.equals(lastRequestNavData)) {
lastRequestNavData = requestNavData;
StringBuilder js = new StringBuilder("eXo.env.server.portalBaseURL=\"");
js.append(getBaseURL()).append("\";\n");