I've raised this as a bug, but thought other people may benefit from this:
If you use the PageSearch class with Unified file system, ie by specifying a value for the UnifiedSearchLocations property instead of using the MainCatalog and MainScope properties, then if you have whitespace between your folder names, for instance:
UnifiedSearchLocations='/upload, /Documents'
Then when you issue a search for files, the PageLinkURL property of the returned 'pages' (EPi creates dummy pages for files found in the search) actually returns the filename part of the path doubled up: so instead of /Documents/MyFile.doc, you get /Documents/MyFile.doc/MyFile.doc
Lesson is: no spaces between directories specified for UnifiedSearchLocations
UnifiedSearchLocations='/upload, /Documents'
Then when you issue a search for files, the PageLinkURL property of the returned 'pages' (EPi creates dummy pages for files found in the search) actually returns the filename part of the path doubled up: so instead of/Documents/MyFile.doc
, you get/Documents/MyFile.doc/MyFile.doc
Lesson is: no spaces between directories specified for UnifiedSearchLocations