docs: private String fixPortletPath(HttpServletRequest request, IPortalUrlBuilder urlBuilder) {
          String path = urlBuilder.getUrlString();
          String context = request.getContextPath();
          if (StringUtils.isBlank(context)) {
              context = "/";
          }
  
          if (!path.startsWith(context + "/f/")) {
              return path.replaceFirst(context, context + "/f/" + loginPortletFolderName);
          }
  
          return path;
      }