# Dashboard another page as my homepage

**URL:** <https://discourse.nodered.org/t/dashboard-another-page-as-my-homepage/81403>\
**Category:** General\
**Tags:** node-red-dashboard\
**Created:** [17 September 2023 16:02 UTC](https://discourse.nodered.org/t/dashboard-another-page-as-my-homepage/81403 "2023-09-17T16:02:19Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahtdf](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@ahtdf](https://discourse.nodered.org/u/ahtdf)\
**Post date:** [17 September 2023 16:02 UTC](https://discourse.nodered.org/t/dashboard-another-page-as-my-homepage/81403/1 "2023-09-17T16:02:19Z")

</div>

Hello  
can I choose another page as my homepage?  
When I enter ip:1880/ui the "Benutzermeneu" page should appear  
Gruß Arno

translated with Google

---

<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:** [17 September 2023 16:23 UTC](https://discourse.nodered.org/t/dashboard-another-page-as-my-homepage/81403/2 "2023-09-17T16:23:37Z")

</div>

Assuming `Benutzermeneu` is a dashboard tab.  
In the dashboard sidebar drag it to the top of the list, it will then be tab 0.

---

<div class="post-metadata">

**Author:** ![ahtdf](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@ahtdf](https://discourse.nodered.org/u/ahtdf)\
**Post date:** [17 September 2023 16:39 UTC](https://discourse.nodered.org/t/dashboard-another-page-as-my-homepage/81403/3 "2023-09-17T16:39:41Z")

</div>

Hello E1cid  
I've tried that too, it works,  
but then all pages that are accessed with ui\_controll move.  
 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/e/ee7bed70df667e8fe60913f08c606e686866b81e.png)  
these and more  
Is there another solution????

---

<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:** [17 September 2023 16:51 UTC](https://discourse.nodered.org/t/dashboard-another-page-as-my-homepage/81403/4 "2023-09-17T16:51:39Z")

</div>

Use msg.name for your ui.control flows, not msg.tab, as msg.name does not change (unless you edit the tab name in the tab config settings). msg.tab can change when ever you mess with tabs or layout.  
e.g set your buttons to output `system`, `wifi` etc, presuming they are the tab names.

---

<div class="post-metadata">

**Author:** ![ahtdf](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@ahtdf](https://discourse.nodered.org/u/ahtdf)\
**Post date:** [17 September 2023 17:04 UTC](https://discourse.nodered.org/t/dashboard-another-page-as-my-homepage/81403/5 "2023-09-17T17:04:33Z")

</div>

Hello E1cid  
Thanks for the info, I did it that way on all the pages I made myself. But this is ready-made programming (firmware) for a Raspberry that changes from time to time.  
So I can't change that.  
So I'll have to live with it ☹  
Unless you can change it somewhere in the basic settings.  
loading.html or similar ????  
Thanks  
Greetings Arno

---

<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:** [17 September 2023 17:19 UTC](https://discourse.nodered.org/t/dashboard-another-page-as-my-homepage/81403/6 "2023-09-17T17:19:58Z")

</div>

This may help take a look

> [@URL goes to a different dashboard](https://discourse.nodered.org/t/url-goes-to-a-different-dashboard/78715/9):
>
> 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. [{"id":"bb94c01226269d42","type":"ui\_ui\_control","z":"b779de97.b1b46","name":"","events":"all","x":60,"y":2740,"wires":[["e085…

msg.lookup would be `{"0":"Benutzermeneu"}`  
Which should redirect to tab `Benutzermeneu` when you first land on tab 0. Then after that all works as before.

I do suggest you contact author of the flows and ask them to change to using msg.name in future releases, as it would be much simpler to move tabs then.

---

<div class="post-metadata">

**Author:** ![ahtdf](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@ahtdf](https://discourse.nodered.org/u/ahtdf)\
**Post date:** [18 September 2023 12:46 UTC](https://discourse.nodered.org/t/dashboard-another-page-as-my-homepage/81403/7 "2023-09-18T12:46:33Z")

</div>

> [@ahtdf](#):
>
> E1cid

Hello E1cid  
Thanks for the tip.  
I made a shortcut on my cell phone for the "Benutzermeneu" page, but page 0 always opened. That was with the Chrome browser. I have now installed Firefox and it now works on my phone.  
Thanks again for the hint

---

<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:** [18 September 2023 15:04 UTC](https://discourse.nodered.org/t/dashboard-another-page-as-my-homepage/81403/8 "2023-09-18T15:04:23Z")

</div>

Dud the flow in the link i posted not work?

---

<div class="post-metadata">

**Author:** ![ahtdf](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@ahtdf](https://discourse.nodered.org/u/ahtdf)\
**Post date:** [18 September 2023 16:39 UTC](https://discourse.nodered.org/t/dashboard-another-page-as-my-homepage/81403/9 "2023-09-18T16:39:40Z")

</div>

> [@ahtdf](#):
>
> Hello E1cid

Hello E1cid  
When I start the UI for the first time I still end up on page 0,  
and not on page 28 "Benutzer Meneu"  
This is what the debug messages look like.

 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/d/5d22bdd71d28681b9f2423a27728d7c65c345f7e.png)

and I changed that

![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/e/fec2f594c0601adc95e8a8fb264afceacb35d8c6.png)

---

<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:** [18 September 2023 16:55 UTC](https://discourse.nodered.org/t/dashboard-another-page-as-my-homepage/81403/10 "2023-09-18T16:55:21Z")

</div>

Show us the dashboard tab config for tab (28 i think) `Benutzermeneu` as what you have has a space just want to confirm it is correct.

The sidebar help text says  
`{"tab":"my_tab_name"}` the spaces must be underscores I believe. So msg.lookup may require an underscore.

If you add a debug to the output of the ui-control on my flow, set to complete message object. Then go to tab 28 in the browser, what does msg.name show?

---

<div class="post-metadata">

**Author:** ![ahtdf](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@ahtdf](https://discourse.nodered.org/u/ahtdf)\
**Post date:** [18 September 2023 17:34 UTC](https://discourse.nodered.org/t/dashboard-another-page-as-my-homepage/81403/11 "2023-09-18T17:34:54Z")

</div>

I wrote the Benutzer\_Meneu with an underscore and also changed it in the Dahsboar configuration. debug 300 is behind the ui-controll.  
these are the messages when I start the UI. Ip:1880/ui

 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/0/504ad88db1beacfc0fc0e247b5923eb216e806f7.png)

 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/8/b8e0eb9fb40abf3d68a093ab367c17c9c4a97ee5.png)

And these are the messages when I jump to page 28 Benutzer\_Meneu

 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/7/77c6767a03989c856482880e12ff6f4cc68cc3d9.png)  
 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/d/edae86ec03719cc8995a3ca239d2aebe248e3d92.png)

---

<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:** [18 September 2023 17:46 UTC](https://discourse.nodered.org/t/dashboard-another-page-as-my-homepage/81403/12 "2023-09-18T17:46:23Z")

</div>

So msg.lookup should be `{"0": "Benutzer_Meneu")` then close the dashboard browser widow and reopen it. The page should redirect to tab 28.

---

<div class="post-metadata">

**Author:** ![ahtdf](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@ahtdf](https://discourse.nodered.org/u/ahtdf)\
**Post date:** [18 September 2023 18:01 UTC](https://discourse.nodered.org/t/dashboard-another-page-as-my-homepage/81403/13 "2023-09-18T18:01:10Z")

</div>

sorry but unfortunately she doesn't do that,  
The way I understood the flow, I can't understand it either.  
 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/9/f94a3461073ec26fd95e78c2beb63cfd56c59d48.png)  
 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/7/d741a8ef507a7f245d35e9fad7292e41ab71dbe1.png)

```auto
[{"id":"bb94c01226269d42","type":"ui_ui_control","z":"366d66dee310ab0a","name":"","events":"all","x":280,"y":120,"wires":[["e0857c0a8a22307b","76f25793e05489bc"]]},{"id":"ce1b0b846e39a4bc","type":"change","z":"366d66dee310ab0a","name":"edit tabs and names here","rules":[{"t":"set","p":"lookup","pt":"msg","to":"{\"0\":\"Benutzer_Meneu\"}","tot":"json"},{"t":"set","p":"payload","pt":"msg","to":"lookup[msg.payload.change]","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":890,"y":120,"wires":[["7388b00942c5bdd1","bb94c01226269d42"]]},{"id":"e0857c0a8a22307b","type":"switch","z":"366d66dee310ab0a","name":"","property":"$$.payload in [\"connect\", \"change\"]","propertyType":"jsonata","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":410,"y":120,"wires":[["dc8c1a5c7e8d180e"]]},{"id":"361717861c86eee7","type":"join","z":"366d66dee310ab0a","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":710,"y":120,"wires":[["7388b00942c5bdd1","ce1b0b846e39a4bc"]]},{"id":"7388b00942c5bdd1","type":"debug","z":"366d66dee310ab0a","name":"debug 299","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":770,"y":40,"wires":[]},{"id":"dc8c1a5c7e8d180e","type":"change","z":"366d66dee310ab0a","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":560,"y":120,"wires":[["361717861c86eee7"]]},{"id":"76f25793e05489bc","type":"debug","z":"366d66dee310ab0a","name":"debug 300","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":470,"y":180,"wires":[]}]

```

I've now tried it from the PC and from the cell phone, it doesn't work.

---

<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:** [18 September 2023 18:44 UTC](https://discourse.nodered.org/t/dashboard-another-page-as-my-homepage/81403/14 "2023-09-18T18:44:08Z")

</div>

Does this simplified one work for you

```auto
[{"id":"bb94c01226269d42","type":"ui_ui_control","z":"b9860b4b9de8c8da","name":"","events":"all","x":240,"y":180,"wires":[["af4faca73a06559c"]]},{"id":"474625bfd7634e42","type":"trigger","z":"b9860b4b9de8c8da","name":"","op1":"Benutzer_Meneu","op2":"0","op1type":"str","op2type":"str","duration":"-250","extend":false,"overrideDelay":false,"units":"ms","reset":"change","bytopic":"all","topic":"topic","outputs":1,"x":660,"y":180,"wires":[["bb94c01226269d42","b262b7b33c00f068"]]},{"id":"af4faca73a06559c","type":"rbe","z":"b9860b4b9de8c8da","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":370,"y":180,"wires":[["e0857c0a8a22307b"]]},{"id":"e0857c0a8a22307b","type":"switch","z":"b9860b4b9de8c8da","name":"","property":"$$.payload in [\"change\", \"connect\"]","propertyType":"jsonata","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":490,"y":180,"wires":[["474625bfd7634e42"]]},{"id":"b262b7b33c00f068","type":"debug","z":"b9860b4b9de8c8da","name":"debug 338","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":730,"y":120,"wires":[]}]

```

[edit] change delay to trigger node, with reset when change tab.

---

<div class="post-metadata">

**Author:** ![ahtdf](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@ahtdf](https://discourse.nodered.org/u/ahtdf)\
**Post date:** [18 September 2023 18:59 UTC](https://discourse.nodered.org/t/dashboard-another-page-as-my-homepage/81403/15 "2023-09-18T18:59:58Z")

</div>

Thanks for the help, but there's a very strong thunderstorm here, I'll try tomorrow after work.  
Greetings Arno

---

<div class="post-metadata">

**Author:** ![ahtdf](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@ahtdf](https://discourse.nodered.org/u/ahtdf)\
**Post date:** [20 September 2023 17:21 UTC](https://discourse.nodered.org/t/dashboard-another-page-as-my-homepage/81403/16 "2023-09-20T17:21:22Z")

</div>

Hello E1cid  
I don't know why, but the flow doesn't work either.  
I created a new flow. in debug it shows exactly what it should do, but the start page remains 0

```auto
[{"id":"a5a26aa9.8e0c48","type":"change","z":"4bd4173d7901a078","name":"payload","rules":[{"t":"set","p":"payload","pt":"msg","to":"{}","tot":"json"},{"t":"set","p":"payload","pt":"msg","to":"change","tot":"str"},{"t":"set","p":"tab","pt":"msg","to":"28","tot":"str"},{"t":"set","p":"name","pt":"msg","to":"Benutzer_Meneu","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":2160,"y":440,"wires":[["9ff3237cb30fcb4a","29684e68924619e0"]]},{"id":"9ff3237cb30fcb4a","type":"ui_ui_control","z":"4bd4173d7901a078","name":"","events":"all","x":1760,"y":440,"wires":[["866b47b74c118663"]]},{"id":"866b47b74c118663","type":"rbe","z":"4bd4173d7901a078","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":1910,"y":440,"wires":[["2bed015a7a5a5780"]]},{"id":"2861f5bb85ab6179","type":"inject","z":"4bd4173d7901a078","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"0.25","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1570,"y":440,"wires":[["9ff3237cb30fcb4a"]]},{"id":"29684e68924619e0","type":"debug","z":"4bd4173d7901a078","name":"debug 341","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":2350,"y":440,"wires":[]},{"id":"2bed015a7a5a5780","type":"switch","z":"4bd4173d7901a078","name":"","property":"$$.payload in [\"change\", \"connect\"]","propertyType":"jsonata","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":2030,"y":440,"wires":[["a5a26aa9.8e0c48"]]}]

```

these are the debug messages

![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/8/68c16980ed450b8274eed300f56c5b6180ea2ccc.png)

I give up 🙂  
and do that with Firefox and the shortcut  
greeting  
Arno
