mediaDetails sizes query returns incorrect value for "file" #2982
Labels
Needs: Reproduction
This issue needs to be reproduced independently.
Type: Bug
Something isn't working
Description
Query to get mediaDetails size URL on any image returns a wrong file attribute. Return value is missing year/month segment and hence returns 404 when requested. The sourceUrl for however returns the corrects absolute url.
Steps to reproduce
Add New Post, set Featured image:
Query:
Additional context
Output:
WPGraphQL Version
1.18.0
WordPress Version
6.3.2
PHP Version
8.1.18
Additional environment details
Using roots/sage ontop of bedrock for WP, which is the reason for the /app/ fragment in the returned URL: https://roots.io/
Please confirm that you have searched existing issues in the repo.
Please confirm that you have disabled ALL plugins except for WPGraphQL.
The text was updated successfully, but these errors were encountered: