Page 1 of 1

Hyperlink to a local htm file

Posted: Thu Sep 12, 2019 2:02 pm
by BFoster
I've used the hyperlink widget to link to an internet based web page with success. This time, I'm trying to link to an htm doc located under Profound's htdocs folder. To do that, I provided this entry "file:///V:/profoundui/htdocs/profoundui/userdata/Help/DDLGenHelp/FWK0700R01/index.htm" in the hyperlink reference property and "_blank" in the target property. When I click on the hyperlink, nothing happens. I was expecting the html file to be opened in another tab in the browser that is displaying the Rich UI screen. If I put the file:///... entry above in a browser's URL window the htm is presented without problems. What in the heck am I doing wrong?

Re: Hyperlink to a local htm file

Posted: Thu Sep 12, 2019 3:13 pm
by Scott Klement
Many browsers do not allow you to use URLs with the file:// scheme from a page served by a web server. You can only use the file:// scheme if you open the HTML file from a file on your local hard drive. This is a security thing to prevent web servers from being able to access your local hard drive.

Since you say the data is located under the 'htdocs' folder, it should be available via HTTP already. Can you explain why you are using a file:// URL instead of an http:// URL?

You would use a URL like "/profoundui/userdata/Help/DDLGenHelp/FWK0700R01/index.html" (notice, no file:// at the beginning, etc... it'll default to http -- also you don't put "profoundui/htdocs", that part will be figured out from the "DocumentRoot" setting in Apache).

Re: Hyperlink to a local htm file

Posted: Tue Sep 17, 2019 8:01 am
by BFoster
Thanks, Scott. That did the trick.