Last modified by wiki admin on 2026/08/26 01:04

From version 6.1
edited by wiki admin
on 2026/08/24 22:13
Change comment: There is no comment for this version
To version 5.1
edited by wiki admin
on 2026/08/24 22:13
Change comment: There is no comment for this version

Summary

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -38,21 +38,11 @@
38 38   return svg;
39 39   }
40 40  
41 - function isWikiHome() {
42 - // The employees home page has several H2s (departments, article status,
43 - // publishing workflow). Collapsing a landing page into rows hides the
44 - // thing people came for, so skip it. Matches both URL schemes this
45 - // deployment serves: /bin/view/Main/ and /wiki/<name>/view/Main/.
46 - var path = (window.location.pathname || '').replace(/\/+$/, '');
47 - return /\/view\/Main(\/WebHome)?$/.test(path);
48 - }
49 -
50 50   function build() {
51 51   var body = document.body;
52 52   if (!body || body.className.indexOf('viewbody') === -1) {
53 53   return; // edit, preview, or anything that is not a rendered page
54 54   }
55 - if (isWikiHome()) { return; }
56 56   var content = document.getElementById('xwikicontent');
57 57   if (!content) { return; }
58 58