Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-8512

Search Iterator taglib doesn't like URL's with anchors in them

    Details

      Description

      I have created a PortletURLWrapper class so the browser will jump down to the search results in a portlet (see attached class). The problem is that the order parameters added to the iterator URL by the search iterator tag does not play nicely with anchors.

      I created a patch for /portal/portal-web/docroot/html/taglib/ui/search_iterator/page.jsp that uses the HTMLUtil object to add the parameters instead of just string manipulation.

      <c:if test="<%= orderKey != null %>">
      <span class="result-column-name">
      <%
      String orderURL = HttpUtil.addParameter(url, namespace+searchContainer.getOrderByColParam(), orderKey);
      orderURL = HttpUtil.addParameter(orderURL, namespace+searchContainer.getOrderByTypeParam(), orderByType);
      %>
      <a href="<%=orderURL%>">
      </c:if>

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michael.saechang Michael Saechang
              Reporter:
              poxenham Peter Oxenham (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                8 years, 16 weeks, 6 days ago

                  Packages

                  Version Package
                  6.1.1 CE GA2
                  6.1.20 EE GA2
                  6.2.0 CE M2