faustjs icon indicating copy to clipboard operation
faustjs copied to clipboard

FaustWP: Image URLs in post content are sometimes relative instead of absolute

Open ChrisWiegman opened this issue 1 year ago • 0 comments

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.

ChrisWiegman avatar Dec 29 '23 15:12 ChrisWiegman