Summary
Dashboard 2 ui-page names can be duplicates.
The path attribute for each page must be unique
Dashboard navigation appears to use the page name rather than the unique path, resulting in incorrect page loading.
Details
I have two dashboard pages which have different path attributes ("/sizewellb" & "/sizewellc") but the same name ("Sizewell")
This may be an eccentric arrangement, but it is permitted.
The dashboard navigation menu shows two pages, but only one of them is accessible.
In this case, both menu items load 192.168.1.26:1880/dashboard/sizewellc, the one at the top in the dashboard 2 sidebar.
In fact if I type in the URL bar 192.168.1.26:1880/dashboard/sizewellb, it is rewritten and loads /sizewellc
Sample Flow
[
{
"id": "8e28de539107f6da",
"type": "group",
"z": "64adfb38b124936b",
"name": "Button in Group \"B Reactor Control Rods\" on Page \"Sizewell\" (path \"sizewellb\")",
"style": {
"label": true
},
"nodes": [
"a85f361cd57390c8"
],
"x": 194,
"y": 99,
"w": 500,
"h": 82
},
{
"id": "a85f361cd57390c8",
"type": "ui-button",
"z": "64adfb38b124936b",
"g": "8e28de539107f6da",
"group": "96b4368fd6f9be05",
"name": "",
"label": "B Reactor Control Rods",
"order": 1,
"width": 0,
"height": 0,
"emulateClick": false,
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"iconPosition": "left",
"payload": "",
"payloadType": "str",
"topic": "topic",
"topicType": "msg",
"buttonColor": "",
"textColor": "",
"iconColor": "",
"enableClick": true,
"enablePointerdown": false,
"pointerdownPayload": "",
"pointerdownPayloadType": "str",
"enablePointerup": false,
"pointerupPayload": "",
"pointerupPayloadType": "str",
"x": 330,
"y": 140,
"wires": [
[]
]
},
{
"id": "96b4368fd6f9be05",
"type": "ui-group",
"name": "B Reactor Control Rods",
"page": "d0994868a8a75741",
"width": 6,
"height": 1,
"order": 1,
"showTitle": true,
"className": "",
"visible": "true",
"disabled": "false",
"groupType": "default"
},
{
"id": "d0994868a8a75741",
"type": "ui-page",
"name": "Sizewell",
"ui": "a3e614cd9df4ae2e",
"path": "/sizewellb",
"icon": "home",
"layout": "grid",
"theme": "0d92c765bfad87e6",
"breakpoints": [
{
"name": "Default",
"px": "0",
"cols": "3"
},
{
"name": "Tablet",
"px": "576",
"cols": "6"
},
{
"name": "Small Desktop",
"px": "768",
"cols": "9"
},
{
"name": "Desktop",
"px": "1024",
"cols": "12"
}
],
"order": 2,
"className": "",
"visible": true,
"disabled": false
},
{
"id": "a3e614cd9df4ae2e",
"type": "ui-base",
"name": "My Dashboard",
"path": "/dashboard",
"includeClientData": true,
"acceptsClientConfig": [
"ui-notification",
"ui-control"
],
"showPathInSidebar": false,
"navigationStyle": "default",
"titleBarStyle": "default"
},
{
"id": "0d92c765bfad87e6",
"type": "ui-theme",
"name": "Basic Blue Theme",
"colors": {
"surface": "#4d58ff",
"primary": "#0094ce",
"bgPage": "#eeeeee",
"groupBg": "#ffffff",
"groupOutline": "#cccccc"
},
"sizes": {
"pagePadding": "12px",
"groupGap": "12px",
"groupBorderRadius": "4px",
"widgetGap": "12px"
}
},
{
"id": "d5e968c9ce09d4b9",
"type": "group",
"z": "64adfb38b124936b",
"name": "Button in Group \"C Reactor Control Rods\" on Page \"Sizewell\" (path \"sizewellc\")",
"style": {
"label": true
},
"nodes": [
"f06d832052bf0a19"
],
"x": 194,
"y": 199,
"w": 500,
"h": 82
},
{
"id": "f06d832052bf0a19",
"type": "ui-button",
"z": "64adfb38b124936b",
"g": "d5e968c9ce09d4b9",
"group": "39b3db5ebd169e40",
"name": "",
"label": "C Reactor Control Rods",
"order": 1,
"width": 0,
"height": 0,
"emulateClick": false,
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"iconPosition": "left",
"payload": "",
"payloadType": "str",
"topic": "topic",
"topicType": "msg",
"buttonColor": "",
"textColor": "",
"iconColor": "",
"enableClick": true,
"enablePointerdown": false,
"pointerdownPayload": "",
"pointerdownPayloadType": "str",
"enablePointerup": false,
"pointerupPayload": "",
"pointerupPayloadType": "str",
"x": 330,
"y": 240,
"wires": [
[]
]
},
{
"id": "39b3db5ebd169e40",
"type": "ui-group",
"name": "C Reactor Control Rods",
"page": "cd86fddd1642acbe",
"width": 6,
"height": 1,
"order": 1,
"showTitle": true,
"className": "",
"visible": "true",
"disabled": "false",
"groupType": "default"
},
{
"id": "cd86fddd1642acbe",
"type": "ui-page",
"name": "Sizewell",
"ui": "a3e614cd9df4ae2e",
"path": "/sizewellc",
"icon": "home",
"layout": "grid",
"theme": "0d92c765bfad87e6",
"breakpoints": [
{
"name": "Default",
"px": "0",
"cols": "3"
},
{
"name": "Tablet",
"px": "576",
"cols": "6"
},
{
"name": "Small Desktop",
"px": "768",
"cols": "9"
},
{
"name": "Desktop",
"px": "1024",
"cols": "12"
}
],
"order": 1,
"className": "",
"visible": true,
"disabled": false
},
{
"id": "79ed581732e529d1",
"type": "global-config",
"env": [],
"modules": {
"@flowfuse/node-red-dashboard": "1.31.0"
}
}
]


