-
-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
Describe the bug
I have an issue where if I query a navigation via Graphql with a site and language parameters,
the language param seems to make the site param useless.
Here are my sites :

And in the multisite version :

Here is my test query :
query getNav {
mainNavigation: navigationNodes(
site: "mainSiteFr"
nav: "navMain"
level: 1
language: "en"
) {
url
title
classes
element {
slug
}
}
}
And the result contains only the navigation Nodes of the mainSiteEn website.
In that context, I expect and empty Result because the site mainSiteFr does not have the en language.
MultiSite version:
query getMainNav {
mainNavigation: navigationNodes(site: "frSite1", nav: "navMain", level: 1, language: "fr") {
url
title
classes
element {
slug
}
}
}
In a multisite context, this is even worse because the result comes from a different site in the same language.
Steps to reproduce (reproduce from screenshot above)
- Create 2 sites with different languages
- Create a navigation with some nodes on both sites
- Use the above gql query
Steps to reproduce Multisite (reproduce from screenshot above)
- Create 2 groups of 2 sites with same languages
- Create a navigation with some nodes on both sites
- Use the above gql query
Craft CMS version
5.6.11
Plugin version
3.0.6
Multi-site?
Both yes and no
Additional context
I have the headlessMode active in craft general.php, not sure if it matters
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels