Url redirect when clicking a button

#1

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.

#2

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

#3

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]

#4

I just discovered that (=