diff --git a/portals/devportal/src/main/webapp/services/login/login_callback.jsp b/portals/devportal/src/main/webapp/services/login/login_callback.jsp index 3105b1eb161..68de8cfaa10 100644 --- a/portals/devportal/src/main/webapp/services/login/login_callback.jsp +++ b/portals/devportal/src/main/webapp/services/login/login_callback.jsp @@ -89,13 +89,13 @@ String error = request.getParameter("error"); boolean isAnonymousEnabled = false; if ((error != null) && error.equals("login_required")) { - if(state!=null){ + if (state != null) { state = URLDecoder.decode(state, "UTF-8"); - if(state.contains("/apis") == true || state.contains("/home") == true){ + if (state.contains("/apis") || state.contains("/home")) { isAnonymousEnabled = true; } } - if((state != null) && (isAnonymousEnabled == true)){ + if ((state != null) && (isAnonymousEnabled == true)) { response.sendRedirect(postLogoutRedirectURI + "?referrer=" + state); } else { response.sendRedirect(postLogoutRedirectURI);