node-red-dashboard icon indicating copy to clipboard operation
node-red-dashboard copied to clipboard

Incorrect routing path for duplicate page names

Open bartbutenaers opened this issue 1 year ago • 2 comments

Current Behavior

Hi guys,

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

image

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

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

bartbutenaers avatar Aug 04 '24 07:08 bartbutenaers

Next to the comments in issue #1155, it might also be useful to show a warning in case of duplicate page names? In order to be consistent with the existing warning, which is displayed in case of duplicate page paths already.

bartbutenaers avatar Aug 04 '24 10:08 bartbutenaers

it might also be useful to show a warning in case of duplicate page names? In order to be consistent with the existing warning, which is displayed in case of duplicate page paths already.

I was thinking this too 🤔

joepavitt avatar Aug 06 '24 10:08 joepavitt