Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
1.2 M2
-
None
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