docs: public void login(String userName, String password, String projectName, String redirectUri) throws IOException {
  
          login(userName, password, projectName);
          if (m_loginException == null) {
              if (redirectUri != null) {
                  getResponse().sendRedirect(
                      OpenCms.getLinkManager().substituteLink(getCmsObject(), redirectUri, null, true));
              } else {
                  getResponse().sendRedirect(getFormLink());
              }
          }
      }