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

    XMLWordPrintable

Details

    • Integration
    • Unknown
    • N/A
    • N/A

    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

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

              Dates

                Created:
                Updated:
                Resolved: