This is a really slick module that will help us out a lot with navigation. However, I noticed when I add the navigation as a paragraph, the menu includes a link to the navigation paragraph itself. The menu also contains a duplicate link, as the last item in the paragraphs array ($entity->{$nav['field_name']}[$lang]) is an entity of type "ParagraphsItemEntity," which references back to the nav paragraph.

I am including a patch that fixes this by generating the links only if the bundle is not of type paragraphs_nav_paragraph.

I will point out that if the block is used (which is probably more logical,) rather than adding the navigation as a paragraph, these issues would not occur.

CommentFileSizeAuthor
remove_link_to_self-2428189-1.patch1.48 KBlunazoid
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lunazoid created an issue.