Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-9291

LinkUtil.createLink generates invalid links for pages with a dot in the page name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 6.2.42
    • None
    • None

    Description

      The static `LinkUtil.createLink` Method calls indirectly the `getURI` Method from `URI2RepositoryMapping` class. Since this commit it hower wrongly adds a `dot` suffix when the path includes a dot. 

      Steps to reproduce

      1. Create a page with a page name that includes a dot
      2. Use LinkUtil.createLink

      .. Logs, screenshots, gifs...

      Expected results

      The method creates a valid link

      Actual results

      The method doesn't create a valid link

      Workaround

      Not using site names with a dot (but explain that to editors

      Development notes

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              jheard Jonathan Heard
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD