anchor.diff:          UserDTO userDTO = AuthenticationEndpointUtil.getUser(resendUsername);
           selfRegistrationRequest.setUser(userDTO);
           String path = config.getServletContext().getInitParameter(Constants.ACCOUNT_RECOVERY_REST_ENDPOINT_URL);
  -        String proxyContextPath = ServerConfiguration.getInstance().getFirstProperty(IdentityCoreConstants
  -                .PROXY_CONTEXT_PATH);
  -        if (proxyContextPath == null) {
  -            proxyContextPath = "";
  -        }
           String url;
           if (StringUtils.isNotBlank(EndpointConfigManager.getServerOrigin())) {
               url = EndpointConfigManager.getServerOrigin() + proxyContextPath + path;
  
positive.code: 
                      var userName = document.getElementById("username");
                      var usernameUserInput = document.getElementById("usernameUserInput");
  
                      if (usernameUserInput) {
                          userName.value = usernameUserInput.value.trim();
                      }
  
                      if (userName.value) {
                          $.ajax({
                              type: "GET",
                              url: "<%=loginContextRequestUrl%>",
                              success: function (data) {
                                  if (data && data.status == 'redirect' && data.redirectUrl && data.redirectUrl.length > 0) {
                                      window.location.href = data.redirectUrl;
  
negative.code: <%@ page import="org.wso2.carbon.identity.core.ServiceURLBuilder" %>
  
  <jsp:directive.include file="includes/init-loginform-action-url.jsp"/>
  <%
      String proxyContextPath = ServerConfiguration.getInstance().getFirstProperty(IdentityCoreConstants
              .PROXY_CONTEXT_PATH);
      if (proxyContextPath == null) {
          proxyContextPath = "";
      }
  %>
  <script>
      function goBack() {
          window.history.back();
  