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

Question - Why No Duplicate Menu Items

Open marcodeluca opened this issue 1 year ago • 6 comments

I need to add menu items for the same internal content entry and the component does not allow this. I'm assuming this is intentional? I do not see any setting to enable duplicate menu items.

Is there a reason why you are enforcing this? There are multiple business use cases that this is necessary. A work around would be allowing custom links without enforcing the http, for example allowing /my-path/my-page but this is not possible either.

Am i missing an option to allow this?

marcodeluca avatar Oct 31 '23 13:10 marcodeluca

+1 I don't understand the necessity either. Is it needed for internal functionality?

Adaphath avatar Nov 08 '23 08:11 Adaphath

Hi @marcodeluca and @Adaphath

Current one entity limit per navigation is a left-over from previous Strapi version. There was relation persistence issue when the same entity was used in multiple navigation items.

There's a plan to remove this limitation in near future. At the moment I cannot say for sure when this will happen.

CodeVoyager avatar Nov 10 '23 13:11 CodeVoyager

We have several clients that have a complex navigation tree and need to have different navigation items linking to the same page, for organizational and marketing reasons.

This is a much-needed feature, which for now we have circumvented by creating a new content type "Nav Item" that has a Realation field to choose a page, then in the navigation we link to this content type instead of to the page directly. It works, but it's cumbersome and bad practice to have a content type just to circumvent the lack of this feature.

Please allow linking to the same page from different navigation items it's truly needed in real-life situations.

xmak avatar May 24 '24 20:05 xmak

Same problem here, a non user friendly solution : use the external url.

olivierneo avatar Jun 24 '24 18:06 olivierneo

Do you have any news about this feature request? We need to link different menu items to the same page without bypassing the problem!

fernandezremi avatar Jul 09 '24 09:07 fernandezremi

As for now the only solution is as @olivierneo provided. Because of heavy refactoring for v5, we're no longer working on feature requests to v4 as per release notes for 2.5.0

cyp3rius avatar Jul 09 '24 09:07 cyp3rius