strapi-plugin-navigation icon indicating copy to clipboard operation
strapi-plugin-navigation copied to clipboard

[BUG](v5) When creating a Wrapper with nested items it is not possible to add, remove, or reorder

Open liqueflies opened this issue 8 months ago • 5 comments

Hello,

I tried last v5 version. After adding an item (type wrapper) I added sub items and saved menu. When i need to add sub items, or reorder / delete is not possible until I delete the parent element and recreate the whole tree.

Here is the video:

https://github.com/user-attachments/assets/e2ee4769-aad8-4f19-81ef-bd6d144b5931

liqueflies avatar Apr 04 '25 08:04 liqueflies

Hi @liqueflies, it looks like the issue is caused by the fact that some of your nested navigation items share the same url. The server requires each item's path to be unique, and when duplicate URLs are detected, it throws a validation error. Please ensure that each url is unique among nested items and try again. Let us know if you're still encountering issues afterward.

mateusz-kleszcz avatar Apr 22 '25 07:04 mateusz-kleszcz

Hello @mateusz-kleszcz

Yes, after upgrading each url (that i feel is not "right" because i resolve internally to my application based on pagetype and eventually any variables) they made a triple entry of my last item.

Then i cannot save again...

liqueflies avatar Apr 22 '25 09:04 liqueflies

@liqueflies could you please share URLs you upgraded and the server logs that appear right after you try to save your navigation?

I’ve tried to reproduce the issue on my end, but haven’t been able to do it so far.

mateusz-kleszcz avatar Apr 22 '25 10:04 mateusz-kleszcz

@liqueflies Recently newest version of plugin was released. It deals with saving issues. Have a look, please.

CodeVoyager avatar May 07 '25 12:05 CodeVoyager

I'm encountering this issue on 3.0.13

brianjd avatar May 14 '25 15:05 brianjd

Hi @liqueflies, @brianjd,

Could you please try the latest version of the plugin (v3.2.0) and check if you're still experiencing any issues with saving navigation items? If the problem persists, could you share the steps to reproduce it and any relevant error logs so we can investigate further? Thanks!

mateusz-kleszcz avatar Aug 01 '25 07:08 mateusz-kleszcz

Since there has been no recent feedback on this issue, we will close it as stale for now. If anyone still encounters this problem, please feel free to reopen the issue or open a new one.

mateusz-kleszcz avatar Aug 12 '25 11:08 mateusz-kleszcz

Hello @mateusz-kleszcz, sorry I lost the conversation. I confirm that now the only error i get (I suppose is wanted) is that you need to have different path for each subItem. To me it's not a good pattern (for example if you do not compile "path" and let the front-end resolve the routing with the "type"), but let me know what do you think!

liqueflies avatar Aug 12 '25 14:08 liqueflies