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

Embedded page does not show URLs without "http://" correctly

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 7.1.10 DXP FP14, 7.1.X, 7.2.10 DXP FP2, 7.2.X, Master
    • Fix Version/s: Master
    • Component/s: WCM
    • Labels:

      Description

      Reproduction steps:

      1. Create a new site
      2. Create a new page with "Embedded" type
      3. Configure page to a URL without "http://", like "www.example.com"
      4. Click on the embedded page to view it

      Result:
      Actual: page tries to show "http://localhost:8080/web/testsite/www.example.com"
      Expected: show the contents of "http://www.example.com"

      Notes:
      Although, "www.example.com" is not a valid URL by itself, the portal accepts these type of URL definitions in some other configurations already: e.g. IFrame portlet automatically prepends the URL with "http://" or "https://" when it's not starting with it. Code in IFrameConfigurationAction.processAction(..).
      URL configuration of Embedded Pages should work the same way.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 days ago

                  Packages

                  Version Package
                  Master