[Solved] Wiki Dashlets does not show the wiki links on the dashboard

I recently upgraded Alfresco from version 4.0.D to 4.2.B and the wiki dashlets did not display the wiki syntax.

 

The links showed up as normal text inside the brackets [[linkname]]

 

After almost giving up on forums, recreating indexes and everything in between, I landed on this page:

https://issues.alfresco.com/jira/browse/ALF-16771

 

Here's what we need to do:

 

Go to the following folder in Alfresco directory

cd tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashlets/

 

Copy the original file wiki.get.js

sudo cp wiki.get.js wiki.get.js.original

 

Edit the file

vi wiki.get.js

 

search for the string 'pages.push'

/pages.push

 

Comment the lines below

      //for (var p in model.pageList.pages)

      //{

      //   pages.push(p.name);

      //}

Add the following lines

      for (var i=0; i<model.pageList.pages.length; i ) 

      { 

         pages.push(model.pageList.pages[i].name); 

      }

Restart Alfresco