Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GROQ MarkDefs queries do not apply for MarkDefs which are inside list items #106

Open
toddpadwick opened this issue May 19, 2023 · 1 comment

Comments

@toddpadwick
Copy link

Hi! I have a block content field which has an internal link field. This needs following in the GROQ query, which I have done as per the guidance on the Sanity docs.

    body[] {
            ...,
            markDefs[]{
                ...,
                _type == "link" => {
                    ...,
                    internal-> {
                        path
                    }
                }
            },
        }

These internal link references are queried successfully for links in different formatting types such as p tags and h tags. However, when links are added to ordered or unordered lists, they do not. meaning our website currently doesn't display any links that are inside lists.

@toddpadwick
Copy link
Author

Any updates on this? to confirm, I've noticed that this is only an issue on v2 projects, not v3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant