# Redirect to URL using dashboard button

**URL:** <https://discourse.nodered.org/t/redirect-to-url-using-dashboard-button/30492>\
**Category:** General\
**Created:** [21 July 2020 16:15 UTC](https://discourse.nodered.org/t/redirect-to-url-using-dashboard-button/30492 "2020-07-21T16:15:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lightbluecrab](https://avatars.discourse-cdn.com/v4/letter/l/5daacb/32.png) [@lightbluecrab](https://discourse.nodered.org/u/lightbluecrab)\
**Post date:** [21 July 2020 16:15 UTC](https://discourse.nodered.org/t/redirect-to-url-using-dashboard-button/30492/1 "2020-07-21T16:15:58Z")

</div>

Hello everyone,  
I want to add a button to my node red dashboard that redirects you to an external URL (such as [google.com](http://google.com)). I read several threads on how to solve that issue, but I would like to use the node-red-dashboard´s default buttons, instead of creating custom buttons. Therefore I would be very pleased if somebody could help me solving this rather easy sounding problem.

Thanks in advance and best regards 😃

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [21 July 2020 20:02 UTC](https://discourse.nodered.org/t/redirect-to-url-using-dashboard-button/30492/2 "2020-07-21T20:02:40Z")

</div>

Buttons are typically for click events. Dashboard buttons feed back to node-red (server side) so can't redirect the browser (client side). So - Just add a ui\_template node with a HTML anchor styled to look like a button with href set to your URL.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 September 2020 20:02 UTC](https://discourse.nodered.org/t/redirect-to-url-using-dashboard-button/30492/3 "2020-09-19T20:02:42Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
