fix: add content-page handling in languageSwitcher query

This commit is contained in:
Arvid Norlin
2024-08-14 11:54:16 +02:00
committed by Erik Tiekstra
parent 8220a39a8f
commit a01aa10bf2
3 changed files with 55 additions and 0 deletions

View File

@@ -17,3 +17,39 @@ query GetContentPage($locale: String!, $uid: String!) {
}
}
}
query GetDaDeEnUrlsContentPage($uid: String!) {
de: all_content_page(where: { uid: $uid }, locale: "de") {
items {
url
}
}
en: all_content_page(where: { uid: $uid }, locale: "en") {
items {
url
}
}
da: all_content_page(where: { uid: $uid }, locale: "da") {
items {
url
}
}
}
query GetFiNoSvUrlsContentPage($uid: String!) {
fi: all_content_page(where: { uid: $uid }, locale: "fi") {
items {
url
}
}
no: all_content_page(where: { uid: $uid }, locale: "no") {
items {
url
}
}
sv: all_content_page(where: { uid: $uid }, locale: "sv") {
items {
url
}
}
}