1
Vote

Menu items of type Custom Link with same Menu text and Url are not displayed!

description

Hi,

I am using Orchard 1.6 and I found the following bug in Navigation. I have created 2 menu items of type Custom Link with same Menu text and Url, but when I go to the front-end in the menu bar, only the 1 menu item with that name is displayed. So the only workaround at the moment is just to rename the second item.

In addition to the above, the same issue exists when you have a multi-language navigation. For a example, in my menu I have a link with name Blog (Custom Link). This menu item exists in my English and Russian navigation with the same name, but only in the English version is displayed. In order to solve this I had to create a different widget that will hold the Russian menu. This is wrong for someone that will need to have multiple languages.

comments

pszmyd wrote May 10, 2013 at 5:10 PM

It's a desired behavior. The navigation manager removes duplicated items and merges their children together (if any).

andreaschr wrote May 11, 2013 at 5:50 AM

Maybe from programmers perspective is correct, but unfortunately for me as an admin of my orchard site is causing too many issues especially in a multi-language site.
when you have a multi-language navigation. For a example, in my menu I have a link with name Blog (Custom Link). This menu item exists in my English and Russian navigation with the same name, but only in the English version is displayed. In order to solve this I had to create a different widget that will hold the Russian menu. This is wrong for someone that will need to have multiple languages.