diff --git a/studio/lib/queries/pages.ts b/studio/lib/queries/pages.ts index b2a52e399..37d140c10 100644 --- a/studio/lib/queries/pages.ts +++ b/studio/lib/queries/pages.ts @@ -15,7 +15,43 @@ const SECTIONS_FRAGMENT = groq` } } } - } + }, + _type == "article" => { + ..., + link { + ..., + linkType == "internal" => { + ..., + "internalLink": internalLink->{ + "_ref": slug.current + } + } + } + }, + _type == "callout" => { + ..., + link { + ..., + linkType == "internal" => { + ..., + "internalLink": internalLink->{ + "_ref": slug.current + } + } + } + }, + _type == "ctaSection" => { + ..., + callToActions[] { + ..., + linkType == "internal" => { + ..., + "internalLink": internalLink->{ + "_ref": slug.current + } + } + } + }, } `;