targetNode = userPortal.resolvePath(navigation, builder.build(), nodePath);
if (targetNode == null) {
// If unauthenticated users have no permission on PORTAL node and URL is valid, they will be required to
// 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;
}