// login
if (pcontext.getRemoteUser() == null && siteKey.getType().equals(SiteType.PORTAL)) {
targetNode = userPortal.resolvePath(navigation, null, nodePath);
if (targetNode != null) {
uiPortalApp.setLastRequestNavData(null);
pcontext.requestAuthenticationLogin();
return;
}
} else {
// If path to node is invalid, get the default node instead of.
targetNode = userPortal.getDefaultPath(navigation, builder.build());