anchor.diff:          <div class="field">
               <%=AuthenticationEndpointUtil.i18n(resourceBundle, "forgot.username.password")%>
               <% if (!isIdentifierFirstLogin(inputType)) { %>
  -                <a id="usernameRecoverLink" tabindex="5" href="<%=getRecoverAccountUrl(identityMgtEndpointContext, urlEncodedURL, true)%>">
  +                <a id="usernameRecoverLink" tabindex="5" href="<%=getRecoverAccountUrl(identityMgtEndpointContext, urlEncodedURL, true, urlParameters)%>">
                       <%=AuthenticationEndpointUtil.i18n(resourceBundle, "forgot.username")%>
                   </a>
                   <%=AuthenticationEndpointUtil.i18n(resourceBundle, "forgot.username.password.or")%>
               <% } %>
  -            <a id="passwordRecoverLink" tabindex="6" href="<%=getRecoverAccountUrl(identityMgtEndpointContext, urlEncodedURL, false)%>">
  +            <a id="passwordRecoverLink" tabindex="6" href="<%=getRecoverAccountUrl(identityMgtEndpointContext, urlEncodedURL, false, urlParameters)%>">
                   <%=AuthenticationEndpointUtil.i18n(resourceBundle, "forgot.password")%>
               </a>
               ?
  
positive.code:                     console.warn("Prevented a possible double submit event");
                  } else {
                      e.preventDefault();
                      var userName = document.getElementById("username");
                      userName.value = userName.value.trim();
                      if(userName.value){
                          $.ajax({
                              type: "GET",
                              url: "/logincontext?sessionDataKey=" + getParameterByName("sessionDataKey") + "&relyingParty=" + getParameterByName("relyingParty") + "&tenantDomain=" + getParameterByName("tenantDomain"),
                              success: function (data) {
                                  if (data && data.status == 'redirect' && data.redirectUrl && data.redirectUrl.length > 0) {
                                      window.location.href = data.redirectUrl;
  
negative.code: <%@ page import="javax.ws.rs.core.Response" %>
  <%@ page import="static org.wso2.carbon.identity.core.util.IdentityUtil.isSelfSignUpEPAvailable" %>
  <%@ page import="static org.wso2.carbon.identity.core.util.IdentityUtil.isRecoveryEPAvailable" %>
  <%@ page import="static org.wso2.carbon.identity.core.util.IdentityUtil.isEmailUsernameEnabled" %>
  <%@ page import="static org.wso2.carbon.identity.core.util.IdentityUtil.getServerURL" %>
  <%@ page import="org.apache.commons.codec.binary.Base64" %>
  <%@ page import="java.nio.charset.Charset" %>
  