On multilingual sites, menu items appear twice

Created on 20 November 2017, over 7 years ago
Updated 14 December 2023, about 1 year ago

Problem/Motivation

If website has two or more languages then Views with Menu Children Filter enabled shows menu items that have multiple translations twice.

Filter content by active site language doesn't work with Menu Children Filter.

Steps to Reproduce

  1. Set up a site with two or more languages
  2. Create nodes with multiple translations and add them to a menu.
  3. Create a View using the Menu Children Filter
  4. Filter the content by active site language

Proposed Resolution

Fix Menu Children Filter module to respect the active site language filter.

Current Workaround

Check "Distinct" in the Query Settings under the "Other" section.

Note that this solution slows queries down.

Remaining tasks

  • ❌ Write patch
  • ❌ Write test coverage
  • ❌ Manually test
  • ❌ Commit fix to 3.0.x branch
🐛 Bug report
Status

Needs work

Version

3.0

Component

Code

Created by

🇧🇾Belarus vojur

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024