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

Link to page field's is cached with the same value in a web content in different virtual hosts

    Details

      Description

      Reproduction steps on master:

      1. At the Configuration of the default site go to the Site URL tab and set the following (please set these in your hosts file in your operating system as well):
      Public Pages: "default.com"
      2. Create a new site (site1).
      3. At the Configuration of site1 go to the Site URL tab and set the following (please set these in your hosts file in your operating system as well):
      Public Pages: "site1.com"
      Private Pages: "site2.com"
      4. Create a page on for site1 (site1-page1).
      5. Go to site1 Administration > Content > Web Content.
      6. Create a Web Content Structure with a "Link to Page" field.
      7. Create a Web Content Template which shows the field in a URL.
      8. Create a Web Content Article with your Structure: point the field to the only page.
      9. Put a Web Content Display portlet to the site1-page1 and display your article.
      10. Empty all the caches at the Control Panel > Configuration > System Administration.
      11. Go to http://default.com:8080/web/site1/site1-page1
      12. Open a new browser where you access the site1-page1 with the Guest.
      13. Check the link to page url.

      Actual Result: The Link to Page field points to the default.com domain
      http://default.com:8080/web/site1/site1-page1

      Expected Result: The Link to Page field points to the right domain:
      http://site1.com:8080/site1-page1

        Attachments

        1. Fixed.gif
          Fixed.gif
          127 kB
        2. Fixed70.gif
          Fixed70.gif
          133 kB

          Issue Links

            Activity

              People

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

                Dates

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

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP11
                  7.0.0 DXP SP2
                  7.0.3 CE GA4
                  7.1.X
                  Master