1.7 Alpha help.properties relative links

As per my http://www.openvpms.org/forum/1.7-alpha-suggestion-improved-help-page-query post, I have an entry in the help topics part of help.properties file that says

help.topic.5.title = Local procedures
help.topic.5.url = http://localhost:8080/localProcs.pdf

I meant the URL to functionally be a relative one - ie to point to the server on which Tomcat is running. However, it does not work like that - localhost refers to the machine on which your browser is running.

I thought - not a problem - I will use an standard html relative address - ie ./localProcs.pdf

But this does not work - it simply opens a new page just like the 'Open new browser window' icon in the top menu line.

Obviously I can hard code the URL - eg http://opv.mypractice.com:8080/localProcs.pdf - but it would be nicer for portability if I could set a server relative address.

Is there a syntax for doing this?

Regards, Tim G

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: 1.7 Alpha help.properties relative links

Try using a file:// URL.

E.g. file://./localProcs.pdf

NOTE: haven't tried it myself.

-Tim A

Re: 1.7 Alpha help.properties relative links

No - it didn't work.  I will stay with the full URL.  Thanks anyway.  Regards, Tim G

Re: 1.7 Alpha help.properties relative links

Sorry - not thinking. file:// can't work. There would need to be support in code to construct the fully qualified http:// URL given a relative path.

-Tim A

Syndicate content