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

Link to page in web content template has an absolute URL

Details

    Description

      Steps to reproduce:

      1. Go to Site Builder > Content and Data > Web Content
      2. Click on Structures tab
      3. Add a new Structure and add a Link to Page to it, then save
      4. Create a new Template for the structure and add the link to page markup, then save
      5. Create a new Web Content with the Structure that was created in step 3, and select the home page for the link to page field
      6. Publish the web content
      7. Create a new widget page and add a web content display to it
      8. Select the web content that was created in step 5
      9. Inspect the element

      Expected result: link should be relative i.e. /home

      Actual result: link is absolute

       

      This is more visible when navigating to: 127.0.0.1:8080 and inspecting the link, since it will be shown as localhost:8080

      Attachments

        Issue Links

          Activity

            People

              oziel.souza Oziel Souza (Inactive)
              jurgen.kappler Jürgen Kappler
              Ricardo Couso Ricardo Couso
              Jürgen Kappler Jürgen Kappler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                48 weeks, 4 days ago

                Packages

                  Version Package
                  7.3.X
                  7.4.3.31 CE GA31
                  Master