Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-1793

LiferayURLGeneratorBaseImpl.generateURL() does not handle certain parameters generated by PortletURLImpl.generateToString()

    Details

      Description

      LiferayURLGeneratorBaseImpl.generateURL() needs to handle the plid, refererGroupId, and portlet URL anchor parameters.

      To handle the plid and refererGroupId parameters, this code needs to be added to LiferayURLGeneratorBaseImpl.generateURL():

      // Possibly add the p_l_id parameter.
      String plid = parameterMap.get("p_l_id");
      
      if (plid != null) {
          appendParameterToURL("p_l_id", plid, url);
      }
      
      // Possibly add the refererGroupId parameter.
      String refererGroupId = parameterMap.get("refererGroupId");
      
      if (refererGroupId != null) {
          appendParameterToURL("refererGroupId", refererGroupId, url);
      }
      

      Handling the portlet URL anchor parameter requires additional processing due to the fact that it is not a simple name=value URL parameter.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                liferay-faces-2.1.4-ga5
                liferay-faces-2.2.4-ga5
                liferay-faces-3.0.4-legacy-ga5
                liferay-faces-3.0.4-ga5
                liferay-faces-3.1.4-ga5
                liferay-faces-3.2.4-ga5