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

PortalImpl.getGroupFriendlyURL returns inconsistent URL format based on virtual host setting

    Details

      Description

      When we use the default localhost as virtual host, the method PortalImpl.getGroupFriendlyURL returns a URL without the http://hostname:portnumber part, e.g.: "/web/guest/home".

      When we use a custom virtual host, it will return the entire URL, e.g.: "http://hostname:portnumber/web/guest/home".

      The reason is that within this method the portalURL variable is defined as blank, but when using localhost, it will never get a value. However, it's still added at the beginning of the returned URL. I think this is not an intentional behavior.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              hugo.huijser Hugo Huijser
              Reporter:
              gergely.mathe Gergely Mathe (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                8 years, 17 weeks, 3 days ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.0 CE M6