AnsweredAssumed Answered

Links returned in custom search webscript is not working

Question asked by shikarishambu on Feb 2, 2010
Latest reply on Feb 2, 2010 by shikarishambu
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_SOB.pdf 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/100034_SOB.pdf</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/CustomProperties2003.doc</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>

Outcomes