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

Search portlet - view in context option doesn't work with public/private pages

    Details

      Description

      Searching on a public page results in wrong links to webcontents on a private page and vice versa. Links on the public result page to a webcontent on a public page are correct and also links on a private search result page are correct for webcontents on a private page.

      Reproduction

      1. Create two web contents with the same word in it to search for (I used "asdf" in both contents)
      2. Create a public page and put one of the web contents on it Using Web content display
      3. Create a private page and put the other web contents on it Using Web content display
      4. Put a search portlet on public page with "view in context" options set
      5. Put a search portlet on private page with "view in context" options set
      6. Search on the private page for the chosen word
      7. Search on the public page for the chosen word

      Expected results:

      • The search result page shows the two webcontens
      • Each of the two links points to the orginal page where the webcontent was put on

      Actual results:

      • The search result page shows the two webcontens
      • One of the two links shows the webcontent in the context of the search results page

      Reproduced on:
      EE 6.2.10 portal-89
      ee-6.2.x (@4e83654cd95f80cbcd86c5d542109e45b4bba18b)
      master (@cc5c84c8408425ff296579cb236ee56efa3b3439)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hong.zhao Hong Zhao
                Reporter:
                zsolt.olah Zsolt Oláh (Inactive)
                Participants of an Issue:
                Recent user:
                Tibor Lipusz
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 30 weeks, 1 day ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 CE RC1