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

Portal doesn't use only virtualhost for page URLs if the port is different than 80

Details

    • 3

    Description

      If you use the portal with a port different from 80 the URLs contains group's friendly URL.
      To replicate the issue:

      1. set virtual host for your site public pages (for example "test-local" for site "guest") and add the virtual host into your "hosts" file (for example "127.0.0.1 test-local")
      2. change the default portal virtual host (for example your ip address or 127.0.0.1)
      3. create some sample public pages into your site (for example "sample-page")
      4. sign-in through virtual host (for example http://test-local:8080)
      5. click to some link into navigation menu

      Expected result: the URL doesn't contains the group's friendly URL (for example: http://test-local/sample-page)
      Actual result: the URL contains the group's friendly URL (for example: http://test-local/web/guest/sample-page)

      This issue seems due to this check: https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/com/liferay/portal/util/PortalImpl.java#L8241

      Attachments

        1. LPS-71854.mov
          7.53 MB
        2. LPS-71854.webm
          8.36 MB

        Issue Links

          Activity

            People

              lu.liu Lu Liu
              fabio.pezzutto Fabio Pezzutto
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                5 years, 29 weeks ago

                Packages

                  Version Package
                  7.0.X EE
                  Master