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

The links for the Administration tabs are inefficiently generated

    XMLWordPrintable

Details

    Description

      They use $xwiki.getDocument(...).getURL(...) instead of simply calling $xwiki.getURL(...), which is:

      • faster, since we don't have to load the documents in memory
      • safer, since if a user has admin rights, but not view rights, then the getDocument method will return null, thus breaking the HTML code + link target

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            sdumitriu Sergiu Dumitriu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: