Url redirect when clicking a button



I want to create a button in the dashboard that when the user clicks it he is redirected in the browser to the webpage 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 (=