anchor.diff:      String fullyQualifiedUsername = username;
       boolean hasAutoLoginCookie = IdentityManagementEndpointUtil.getBooleanValue(request.getAttribute("isAutoLoginEnabled"));
   
  -    String callback = (String) request.getAttribute("callback");
       if (StringUtils.isBlank(callback)) {
           callback = IdentityManagementEndpointUtil.getUserPortalUrl(
                   application.getInitParameter(IdentityManagementEndpointConstants.ConfigConstants.USER_PORTAL_URL));
  
positive.code: <%@ page import="org.apache.commons.lang.StringUtils" %>
  <%@ page import="org.wso2.carbon.identity.mgt.endpoint.util.IdentityManagementEndpointConstants" %>
  <%@ page import="org.wso2.carbon.identity.mgt.endpoint.util.IdentityManagementEndpointUtil" %>
  <%@ page import="java.net.URISyntaxException" %>
  <%@ page import="java.io.File" %>
  <%@ page import="org.wso2.carbon.identity.recovery.util.Utils" %>
  <%@ page import="org.owasp.encoder.Encode" %>
  
negative.code:                     location.href = "<%= IdentityManagementEndpointUtil.encodeURL(callback)%>";
                      <%
                              }
                      } catch (MalformedURLException e) {
                          request.setAttribute("error", true);
                          request.setAttribute("errorMsg", "Invalid callback URL found in the request.");
                          request.getRequestDispatcher("error.jsp").forward(request, response);
  