Url redirect when clicking a button

Hi,

I want to create a button in the dashboard that when the user clicks it he is redirected in the browser to the webpage http://127.0.0.1:1880/configCamera. I also want to be able to append to this url something like “?name=‘name’”, where ‘name’ can be modified.

So far I tried to use http request, but I just get the response in a json.

Why not use a ui-template node and add in your own button?

I found a solution, I just need to create a node dashboard template with the following code:

var redirect = function(){
window.location.href = "myurl";
}
<button onclick="redirect()">config</button>

[edited by @knolleary to properly format the code]

I just discovered that (=

Can you share your node? I need The same, a node which take as an input a msg.payload and acces a web Page with The adress http://msg.layload

@Tods09you now have 3 threads with same question. I am closing this (almost) 2y old topic.

Also @zas97 has not been online since Nov 2018.