# URL goes to a different dashboard

**URL:** <https://discourse.nodered.org/t/url-goes-to-a-different-dashboard/78715>\
**Category:** General\
**Tags:** node-red-dashboard\
**Created:** [26 May 2023 12:03 UTC](https://discourse.nodered.org/t/url-goes-to-a-different-dashboard/78715 "2023-05-26T12:03:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephenn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stephenn/32/66644_2.png) [@stephenn](https://discourse.nodered.org/u/stephenn)\
**Post date:** [26 May 2023 12:03 UTC](https://discourse.nodered.org/t/url-goes-to-a-different-dashboard/78715/1 "2023-05-26T12:03:58Z")

</div>

I have 5 dashboards on Node Red and setup a shortcut on my phone to the one with the URL ending in 4 ([http://xxx.xxxx.xxx.xxx:1880/ui/#!/4](http://xxx.xxxx.xxx.xxx:1880/ui/#!/4)). A few days ago, that URL started sending me to a different dashboard and now the dashboard I want ends in "5". I haven't done any work on any dashboards. It happened once before a few months ago and then switched back without me doing anything. Any ideas?

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [26 May 2023 12:12 UTC](https://discourse.nodered.org/t/url-goes-to-a-different-dashboard/78715/2 "2023-05-26T12:12:54Z")

</div>

Use the dashboard name instead of number for the shortcut  
i.e.  
[http://IP:1880/ui/#!/demo](http://IP:1880/ui/#!/demo)

---

<div class="post-metadata">

**Author:** ![stephenn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stephenn/32/66644_2.png) [@stephenn](https://discourse.nodered.org/u/stephenn)\
**Post date:** [26 May 2023 14:55 UTC](https://discourse.nodered.org/t/url-goes-to-a-different-dashboard/78715/3 "2023-05-26T14:55:22Z")

</div>

Unfortunately, my Android browser redirects to the ([http://xxx.xxxx.xxx.xxx:1880/ui/#!/4](http://xxx.xxxx.xxx.xxx:1880/ui/#!/4) format when I tried using the dashboard name so I cannot "Add to Homescreen" because it uses that version ending in 4. Once the shortcut is added to Homescreen, it's not an editable URL. UGH!!!

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [26 May 2023 15:11 UTC](https://discourse.nodered.org/t/url-goes-to-a-different-dashboard/78715/4 "2023-05-26T15:11:25Z")

</div>

Strange, if i set Demo it redirects to 0, if i set Home it redirects to 3. On a android TV box device, same on phone.

---

<div class="post-metadata">

**Author:** ![stephenn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stephenn/32/66644_2.png) [@stephenn](https://discourse.nodered.org/u/stephenn)\
**Post date:** [26 May 2023 15:40 UTC](https://discourse.nodered.org/t/url-goes-to-a-different-dashboard/78715/5 "2023-05-26T15:40:51Z")

</div>

What should I be using for the Name? I have tried each and it defaults to the first dashboard which is OWNTRACKS for PC

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/1/21ba35ef6c58f371b469c7936e1839f55c24c826.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [26 May 2023 16:01 UTC](https://discourse.nodered.org/t/url-goes-to-a-different-dashboard/78715/6 "2023-05-26T16:01:06Z")

</div>

I think the problem is that, in Chrome at least, if you go to [http://IP:1880/ui/#!/demo](http://IP:1880/ui/#!/demo)  
then the browser actually displays the tab number, rather than the name. So when you do Add to Home Screen there is no way of getting the name in the shortcut.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [26 May 2023 16:05 UTC](https://discourse.nodered.org/t/url-goes-to-a-different-dashboard/78715/7 "2023-05-26T16:05:56Z")

</div>

The tab name `OWNTRACKS_MOBILE` Case sensitive  
@Colin There are apps to have editable homescreen shortcuts, if that is an issue with standard shortcuts. Or Automate and tasker have homescreen shortcuts which you can can open a browser and direct to url.

---

<div class="post-metadata">

**Author:** ![stephenn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stephenn/32/66644_2.png) [@stephenn](https://discourse.nodered.org/u/stephenn)\
**Post date:** [26 May 2023 16:40 UTC](https://discourse.nodered.org/t/url-goes-to-a-different-dashboard/78715/8 "2023-05-26T16:40:54Z")

</div>

This is really weird. If I put the URL into a Tasker Task and run it, it opens the 1st dashboard. If I type the same URL into Brave Browser, it opens the correct dashboard for Mobile. I tried clearing my browser history.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [26 May 2023 18:19 UTC](https://discourse.nodered.org/t/url-goes-to-a-different-dashboard/78715/9 "2023-05-26T18:19:34Z")

</div>

Seems Name will land on 0 if the browser tab is new. If open on dashboard already then name works.

[edit]  
This flow may work for you.  
It redirects to the name from the number.  
So if your number is `4` and its name is `OWNTRACKS_MOBILE` when it lands on `4`, it will redirect to `OWNTRACKS_MOBILE`, even if 4 is now the wrong tab. It will only do this on connect to dashboard.

```auto
[{"id":"bb94c01226269d42","type":"ui_ui_control","z":"b779de97.b1b46","name":"","events":"all","x":60,"y":2740,"wires":[["e0857c0a8a22307b"]]},{"id":"ce1b0b846e39a4bc","type":"change","z":"b779de97.b1b46","name":"edit tabs and names here","rules":[{"t":"set","p":"lookup","pt":"msg","to":"{\"0\":\"Demo\",\"4\":\"Realtime Panel\",\"2\":\"Pumpe_01\",\"3\":\"Home\",\"1\":\"HOME\"}","tot":"json"},{"t":"set","p":"payload","pt":"msg","to":"lookup[msg.payload.change]","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":670,"y":2740,"wires":[["7388b00942c5bdd1","bb94c01226269d42"]]},{"id":"e0857c0a8a22307b","type":"switch","z":"b779de97.b1b46","name":"","property":"$$.payload in [\"connect\", \"change\"]","propertyType":"jsonata","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":190,"y":2740,"wires":[["dc8c1a5c7e8d180e"]]},{"id":"361717861c86eee7","type":"join","z":"b779de97.b1b46","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":490,"y":2740,"wires":[["7388b00942c5bdd1","ce1b0b846e39a4bc"]]},{"id":"7388b00942c5bdd1","type":"debug","z":"b779de97.b1b46","name":"debug 299","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":550,"y":2660,"wires":[]},{"id":"dc8c1a5c7e8d180e","type":"change","z":"b779de97.b1b46","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"payload","tot":"msg"},{"t":"set","p":"payload","pt":"msg","to":"tab","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":2740,"wires":[["361717861c86eee7"]]}]

```

Edit change node and add your numbers and tab names to lookup object.  
This flow will ensure when you connect the correct page is shown, if for some reason the tab numbers have changed. Your url can then be `http://ip:port/ui/#!/4`

---

<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:** [25 July 2023 18:20 UTC](https://discourse.nodered.org/t/url-goes-to-a-different-dashboard/78715/10 "2023-07-25T18:20:15Z")

</div>

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