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

URLs for links on portlets are pointing to the virtual host instead of the url the portal is being accessed through

    Details

      Description

      DESCRIPTION
      We have a site for which virtual host is set to a domain name, but if the site is accessed from a different domain name other than the domain name set in the virtual host, the rendered page form links and a href links point to the virtual host domain instead of the domain being accessed.
      Additionally, this seems to only occur after platform-15+ is installed. The client was on Platform-18. After uninstalling this, the portal behaved the way he wanted, i.e. links were pointing to the domain being accessed instead of the virtual host.
      I tested all the way from platform-2 to platform-14, platform 15, 18, and 21, and the issue didn't appear until after platform-15.

      STEPS TO REPRODUCE
      1. Set a virtual host for a liferay site (i.e. test.com)
      2. Add a forms portlet to the homepage
      3. Access the site through a different url (i.e. test2.com:8080)
      4. Check the URL when hovering over the link for configuration in the configuration menu for the forms portlet.
      EXPECTED RESULTS
      URLs should show test2.com instead of test.com
      ACTUAL RESULTS
      URL shows test.com instead of test2.com
      BRANCH
      Reproduced in 6.2.x
      commit 46b20d72c299b6c641fbd7cac5f0e560a3ec1d2a
      MASTER
      Reproduced
      commit 5c9ee5492631e2b578d125d4b15322f16c273885

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 1 week, 2 days ago

                  Packages

                  Version Package
                  6.2.2 CE GA3
                  6.2.X EE
                  7.0.0 M1