- Issue created by @eduardo morales alberti
- 🇪🇸Spain lpeidro Madrid
This issue has been fix in https://www.drupal.org/project/entity_mesh/issues/3522682#comment-16105062 🐛 Add langcode on entity_mesh graph on node tab Active . So I close this one.
When using the entity_mesh module's D3 graph visualization and filtering the view by a specific language (e.g., "es"), the graph incorrectly displays all translations of referenced nodes rather than only those in the selected language.
For example, if Node 2 and Node 3 both reference Node 1, and Node 1 has translations in both "es" and "en", the graph will display four links (one for each translation), instead of only showing the links relevant to the filtered language. This results in misleading visualizations, where the number of child nodes and links is inflated, making it difficult for users to understand the true entity relationships for the selected language.
Update the logic generating the D3 graph to ensure that only entity references matching the selected language filter are included in the graph data.
When a language filter is applied (e.g., "es"), only show nodes and links corresponding to entities in that language. Translations that do not match the filter should be excluded from the visualization.
Also test to disable the ajax on the view to check if it is related.
The D3 graph visualization will correctly display only nodes and links for the selected language, resulting in more accurate relationship diagrams for multilingual content.
Active
1.0
Code
This issue has been fix in https://www.drupal.org/project/entity_mesh/issues/3522682#comment-16105062 🐛 Add langcode on entity_mesh graph on node tab Active . So I close this one.