# \[solved\] worldmap - button - redirect using window.location.foo

**URL:** https://discourse.nodered.org/t/solved-worldmap-button-redirect-using-window-location-foo/48903
**Category:** General
**Created:** [26 July 2021 04:58 UTC](https://discourse.nodered.org/t/solved-worldmap-button-redirect-using-window-location-foo/48903 "2021-07-26T04:58:58Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![meeki007](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/meeki007/32/12499_2.png) [@meeki007](https://discourse.nodered.org/u/meeki007)
#### Post date: [26 July 2021 14:14 UTC](https://discourse.nodered.org/t/solved-worldmap-button-redirect-using-window-location-foo/48903/3 "2021-07-26T14:14:08Z")

</div>

> Why not just add the action to the button itself ? No need to send to the backend ?

Oh I thought about doing that using `onclick` and doing that but I have other logic outside of the map I want to forward the user to a url.

This all comes back to the camera system I created using worldmap. That way I can trigger the action as well.  
I just wanted to make sure I was not missing a easy solution before diggin in the innards.  
If its not possible I'll pull up your github repo and start reading and maybe code it in.

I figure it could work like i did with the dashboard [https://discourse.nodered.org/t/howto-dashboard-button-link-to-url-with-no-ui-template-for-only-the-current-user-on-the-page/33210](https://discourse.nodered.org/t/howto-dashboard-button-link-to-url-with-no-ui-template-for-only-the-current-user-on-the-page/33210)

The camera map

 ![Screenshot from 2021-07-26 10-10-07](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/7/d79241d03057e5d978006b51ec0229837390664c.jpeg)

---

_[View the full topic](https://discourse.nodered.org/t/solved-worldmap-button-redirect-using-window-location-foo/48903)._
