Skip to content

Conversation

@Hercilio1
Copy link

The current Wagtail version removed BASE_URL, so to ensure the get_media_item_url function works, I updated it to try both, prioritizing WAGTAILADMIN_BASE_URL.

I'm having issues with my current project when trying to get the image URL using the following GraphQL query:

{
  pages {
    ... on PageForTests {
      id
      title
      body {
        ... on CustomImageBlock {
          id
          altText
          image {
            url
          }
        }
      }
    }
  }
}

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

Successfully merging this pull request may close these issues.

2 participants