Skip to main content
Solved

Open a URL with a task

  • April 11, 2022
  • 1 reply
  • 95 views

Forum|alt.badge.img

Good day,

I’m trying to open a URL with a task (Windows GUI) but I can’t get it to work.

Per the docs, I created a ‘Windows command’ task and gave the Object name the value ‘http:’. I created a task parameter ‘url’.

To open a dynamic URL without knowing the default browser, you can trick the task by using 'http:' as Object name and set the first parameter to the URL to be opened. The same goes for other URI schemes like 'mailto:'.

 

The default browser opens up, but it doesn’t go to the URL. I even tried ‘http:[url]’ but I can’t get it to work. However, if I ‘hard code’ a link in the Object name, it does open up.

What am I missing?

Best answer by S Koning

I found the solution.

You should not have 'http:' in the Object name field but only the brackets with the parameter name eg. [url]. The parameter should have the full URL including http (or https) as value.

So basically you have to have an expression field on the subject for the full URL.

View original
Did this topic help you find an answer to your question?
This topic has been closed for replies.

1 reply

Forum|alt.badge.img
  • Author
  • Rookie
  • 1 reply
  • Answer
  • April 11, 2022

I found the solution.

You should not have 'http:' in the Object name field but only the brackets with the parameter name eg. [url]. The parameter should have the full URL including http (or https) as value.

So basically you have to have an expression field on the subject for the full URL.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings