Solved

Open a URL with a task

  • 11 April 2022
  • 1 reply
  • 84 views

Badge

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?

icon

Best answer by S Koning 11 April 2022, 14:49

View original

This topic has been closed for comments

1 reply

Badge

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.