Relative link

Topics: Developer Forum
Sep 1, 2011 at 9:05 PM

How do I create a relative link in MAML, for example to a demonstration Excel file in the same folder as the help file? (I can create an absolute link, but not a relative link)

i.e. I want to make the code below point to a relative link not an absolute link.

<externalLink>
  <linkText>Demo</linkText>
  <linkUri>file:///C:\Demo.xls</linkUri>
</externalLink> 


Coordinator
Sep 5, 2011 at 6:46 PM

I don't think relative file:// path links work anywhere.  For example, create a simple Test.html page containing an anchor link with a relative path to a text file in the same folder.  Open the test page in the browser and the link won't work there either.  Only fully qualified paths work.  My guess is that either it's suppressed or the current location is relative to the browser executable rather than the content being viewed.

Eric