faustjs
faustjs copied to clipboard
FaustWP: Image URLs in post content are sometimes relative instead of absolute
It’s possible under certain conditions for FaustWP to rewrite image URLs in post_content to be relative URLs instead of absolute URLs. When these are URLs to images stored in WP, it results in broken images on the JS site. Reported here: https://wpengine.slack.com/archives/C01MQH51L14/p1702321472868279Connect your Slack account
Steps to Reproduce
Configure Faust to NOT have a Front-end Site URL value
Disable “Use the WordPress domain for media URLs in post content”
Create a post, link to an image in the post content.
Query the post in GraphiQL and notice the src URL is a relative URL like //wp-content/uploads/2023/12/file.jpg
Issue
Expected Behavior
TBD
Additional Information
Note any other relevant details.