anchor.diff:                                      if (localAuthenticatorNames.contains("totp")) {
                                   %>
                                   <div>
  -                                <a onclick="javascript: handleNoDomain('<%=Encode.forJavaScriptAttribute(Encode.
  +                                <a onclick="javascript: handleNoDomain(this, '<%=Encode.forJavaScriptAttribute(Encode.
                                   forUriComponent(idpEntry.getKey()))%>',
                                           'totp')" class="main-link" style="cursor:pointer" id="icon-<%=iconId%>">
                                       <img class="idp-image" src="images/login-icon.png" data-toggle="tooltip"
  
positive.code:                                     if (localAuthenticatorNames.contains(FIDO_AUTHENTICATOR)) {
                                  %>
                                  <div>
                                  <a onclick="javascript: handleNoDomain('<%=Encode.forJavaScriptAttribute(Encode.
                                  forUriComponent(idpEntry.getKey()))%>',
                                          'FIDOAuthenticator')" class="main-link" style="cursor:pointer" id="icon-<%=iconId%>">
                                      <img class="idp-image" src="images/login-icon.png" data-toggle="tooltip"
  
negative.code:             }
          }
  
          function handleNoDomain(elem, key, value) {
  
              var linkClicked = "link-clicked";
              if ($(elem).hasClass(linkClicked)) {
                  console.warn("Preventing multi click.")
              } else {
                  $(elem).addClass(linkClicked);
                  <%
                  String multiOptionURIParam = "";
                  if (localAuthenticatorNames.size() > 1 || idpAuthenticatorMapping != null && idpAuthenticatorMapping.size() > 1) {
                      multiOptionURIParam = "&multiOptionURI=" + Encode.forUriComponent(request.getRequestURI() +
                          (request.getQueryString() != null ? "?" + request.getQueryString() : ""));
                  }
                  %>
                  document.location = "<%=commonauthURL%>?idp=" + key + "&authenticator=" + value +
                      "&sessionDataKey=<%=Encode.forUriComponent(request.getParameter("sessionDataKey"))%>" +
                      "<%=multiOptionURIParam%>";
              }
          }
  
          $('#popover').popover({
  