FlowFuse / FlowFuse/node-red-dashboard

Incorrect routing path for duplicate page names

Open
#1,154 2 comments 0 reactions 0 assignees View on GitHub
size:S type:bug
Dominant language
HTML
Stars
355
Forks
82
Avg merge
4d 23h
Merged PRs (30d)
24

Description

### Current Behavior

Hi guys,

It seems that some time ago I have created two pages with the same name:

![image](https://github.com/user-attachments/assets/62ed6783-0865-48fb-8582-b079664dabb3)

This was not intended, because of course it makes no sense to have duplicate names in the dashboard menu.
Anyway it can also happen if you import a flow from a user to assist him with something...

Both menu items show up in my dashboard, but when you click them they both refer to the same path:

![image](https://github.com/user-attachments/assets/ea6e0a1d-48db-40f1-b117-6fa19892d2bf)

When I change one of the page names, the problem is immediately solved.

### Expected Behavior

I would expect that the correct path of each page is being used.

### Steps To Reproduce

Create two pages with the same name.

### Environment

- Dashboard version: v1.14.0
- Node-RED version: v3.1.3
- Node.js version: v18.19.0
- npm version:
- Platform/OS: Linux 6.1.0-rpi7-rpi-v8 arm64 LE
- Browser: Chrome

### Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.