cancel
Showing results for 
Search instead for 
Did you mean: 

Links returned in custom search webscript is not working

shikarishambu
Champ in-the-making
Champ in-the-making
I created my own custom search based off the keyword search. The search seems to work and return the documents list. However, when I click the link that is returned as part of the list I get a 404 error. Turns out the issue is due to the /service in the link generated - http://server:8080/alfresco/d/d/workspace/SpacesStore/989c8963-1212-4203-8c32-70f1097b565e/100034_SO... works. I am using ${absurl(url.serviceContext)}${row.url} for link
Thanks



- <item>
  <title>100034_SOB.pdf</title>
  <link>http://server:8080/alfresco/service/d/d/workspace/SpacesStore/989c8963-1212-4203-8c32-70f1097b565e/1...</link>
  <category />
  <description />
  <pubDate>2010-02-01T18:48:38.109-06:00</pubDate>
  <guid isPermaLink="false">989c8963-1212-4203-8c32-70f1097b565e</guid>
  </item>
- <item>
  <title>CustomProperties2003.doc</title>
  <link>http://server:8080/alfresco/service/d/d/workspace/SpacesStore/7f1aa43e-e43e-493f-89e6-56666cabe50e/C...</link>
  <category />
  <description>Subject Field</description>
  <pubDate>2010-02-02T10:36:22.859-06:00</pubDate>
  <guid isPermaLink="false">7f1aa43e-e43e-493f-89e6-56666cabe50e</guid>
  </item>
1 REPLY 1

shikarishambu
Champ in-the-making
Champ in-the-making
Turns out I was using url.serviceContext instead of url.context. Updated it and it works fine.