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

Legacy Friendly URL's redirects to friendly URL with locale

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Inactive
    • Affects Version/s: 6.2.0 CE RC6
    • Fix Version/s: None
    • Component/s: WCM, WCM > Tags
    • Labels:
      None

      Description

      To reproduce:

      1. Go to http://localhost:8080/home (main LR page)
      2. Add the 'Asset Publisher' portlet to the page
      3. Add a blog through the Asset Publisher portlet
      4. When adding the blog, under categorization, add a tag called 'liferay'
      5. Now go to this URL: http://localhost:8080/home/tags/liferay
      6. You will be redirected to http://localhost:8080/en/web/guest/home

      The issue is caused by the change made to this line in FriendlyURLServlet.java:

      if (!friendlyURL.equals(layout.getFriendlyURL(locale))) {
      

      This is caused by the change made in LPS-36404. Before the change it would check if the current URL starts with the layout friendly URL. After the change it checked if they were the same. It doesn't seem like it will ever be the same after the change. Because of this, it will cause the URL to redirect to the localized URL without the parameters.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                michael.saechang Michael Saechang
                Reporter:
                eric.chin Eric Chin
                Participants of an Issue:
                Recent user:
                Petér Petrekanics1 (renamed user to Peter Petrekanics) (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 4 weeks, 2 days ago

                  Packages

                  Version Package