Sorry - please ignore the above question. It works... nothing's wrong with the link. I misunderstood the relative path to the root, not the portal, e.g. ~ points to the root, but not ~/Portals/0/...
To make it work, I have to include the whole path, e.g. ~/Portals/0/specs. My question is: how could I point my path to the portal, instead of the main root? Is there an API that I can use to link any document on anywhere on the harddrive? And how can I hide the path from the users? Currently, it shows http://localhost/MyWebSite/Portals/0/specs/spec001.doc on the footer upon hoovering over the link. For security reason, I would like to avoid showing the path upon hoovering on this link - how can I do that?
Thank you very much for sharing your knowledge.