Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-8725

Invalid top menu link for the "Page" menu when viewing a page containing a dot in its name

    Details

    • Tests:
      Integration
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Steps to reproduce:

      • create a new page on the Main space using the top menu: Add>Page
      • name the page test 1.0

      Result:

      • the top menu link is:
        http://localhost:8080/xwiki/bin/view/test+1/0
      • the top menu link should be:
        http://localhost:8080/xwiki/bin/view/Main/test+1.0
        

      The link should be generated using $doc.getURL('view')

      ...
      #if (!$displayPageSubmenu)
        #xwikitopmenuentry($xwiki.getURL("${doc.name}", 'view') "$msg.get('core.menu.type.page')__SEPARATOR__$!{escapetool.xml($doc.name)}" 'tmPage' 'hasIcon')
      #else
        #xwikitopmenuentrystart($xwiki.getURL("${doc.name}", 'view') "$msg.get('core.menu.type.page')__SEPARATOR__$!{escapetool.xml($doc.name)}" 'tmPage' 'hasIcon')
      ...
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vmassol Vincent Massol
                Reporter:
                oana.tabaranu Elena-Oana Florea
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: