Details

      Description

      Steps to reproduce:

      1. Start Liferay with MySQL database
      2. Navigate to Control Panel > Configuration > Instance Settings > Instance Configuration > General
      3. Change Virtual Host to a1.com
      4. Map a1.com to 127.0.0.1 in your hosts file
      5. Open Liferay as a1.com:8080
      6. Go to System Settings > Wiki > Wiki Service
      7. Set the HTML Editor to alloyeditor
      8. Go to Site Builder > Pages
      9. Add a new Widget Page (eg: Wiki)
      10. Place a Wiki portlet on page Wiki
      11. Go to Control Panel > Content & Data > Wiki > Main
      12. Add a new Wiki Page, eg. Page1
      13. Go back to the Widget Page
      14. Edit the Page1 Wiki Page
      15. Add a Child Page to Page1
      16. Under the Child Pages's Configuration menu, select HTML as the format
      17. Type something into the Child Page and highlight the text
      18. Select the "Link" icon
      19. Click the "Browse" button
      20. Select Page1 to link here
      21. Save the article
      22. Check the "wikipage" table in the DB

      Actual behavior: The content will look something like this <p><a href="http://a2.com:8080/web/guest/wiki/-/wiki/34966/Page1">test</a></p>
      Expected behavior: The link should be relative. If you add the Child page in creole format for example, the content looks like this: [[Page1|test]]

      This causes the following issues:

      1. When you change the domain of the site then links become invalid. To reproduce, change your host to a2.com.
      2. When you remove the page where the wiki portlet is placed, those absolute links become invalid. To test, delete the page "Wiki" and place the wiki portlet to the Home page.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              beck.liu Beck Liu
              Reporter:
              istvan.dezsi Istvan Dezsi
              Participants of an Issue:
              Recent user:
              Yunlin "Steven" Sun
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                26 weeks, 5 days ago

                  Packages

                  Version Package
                  7.1.10 DXP FP20
                  7.1.10.5 SP5
                  7.1.X
                  7.2.10 DXP FP9
                  7.2.X
                  7.3.X
                  7.3.5 CE GA6
                  7.3.10 DXP GA1
                  Master