Hyperlink to a local htm file

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
BFoster
Profound User
Posts: 50
Joined: Fri May 24, 2019 6:26 am
First Name: Ben
Last Name: Foster
Company Name: Manhattan Assurance Company
Contact:

Hyperlink to a local htm file

Post 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?
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Hyperlink to a local htm file

Post 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).
BFoster
Profound User
Posts: 50
Joined: Fri May 24, 2019 6:26 am
First Name: Ben
Last Name: Foster
Company Name: Manhattan Assurance Company
Contact:

Re: Hyperlink to a local htm file

Post by BFoster »

Thanks, Scott. That did the trick.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests