AnsweredAssumed Answered

Problems with dynamic URLs

Question asked by michaelp on Jul 17, 2014
Latest reply on Aug 11, 2014 by michaelp
Hello folks,

I am trying to open a jnlp-file with simple href in javascript from Alfresco Share.

location.href = "../res/components/javawebstart/AEF_JNLP.jnlp";


Result on localhost (working):

http://localhost:8081/share/res/components/javawebstart/AEF_JNLP.jnlp


Result on test environment (not working):

http://t1aetest:9080/share/page/context/res/components/javawebstart/AEF_JNLP.jnlp


From where does "page/context/" come from?
Can anyone help me to achive a dynamic url and not to hard code it?

Best thanks, MP

Outcomes