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

"Page Menu" doesn't handle two links in the same Wiki text line well

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 7.0.0 DXP SP3, 7.0.3 CE GA4, 7.0.0 DXP FP23, 7.0.X EE, Master
    • Fix Version/s: 7.1.X, Master
    • Component/s: Collaboration > Wiki
    • Labels:
      None

      Description

      Steps to reproduce:

      • Create a page with "Page Menu" and "Wiki" portlet.
      • Edit FrontPage to contain the following (raw) text (note the line breaks)
        This page links to various other pages: [[page1]] for example.
        
        And also to [[page2]] and [[page3]]
        
      • Configure the "Page Menu" portlet to show "FrontPage"
      • Expected: Page Menu shows links to page1, page2, and page3 (underscore formatting used to clearly demonstrate the culprit in this ticket)
      • Actual (here's my opportunity to refer to the Oxford comma): Links are shown to page1, page2]] and [[page3

      Analysis: When two links are contained in the same line of a Wiki text, "Page Menu" breaks and displays an unusable link, probably due to the way that pattern matching is performed.

        Attachments

        1. 73693.png
          73693.png
          10 kB
        2. fixed.png
          fixed.png
          6 kB

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 4 weeks, 1 day ago

                Packages

                Version Package
                7.1.X
                Master