Skip to content

Open Graph og:image uses relative URL instead of absolute, causing social preview issues #2602

Answered by enri90
enri90 asked this question in Help & Questions
Discussion options

You must be logged in to vote

Yes, it does seem like a strange requirement, but I assume Facebook (and similar platforms) prefer absolute URLs to avoid having to resolve the domain on their side every time. I also suspect that value is cached on their end, so having a fully qualified URL makes it easier for them to handle.

To resolve it, I passed the image as an absolute URL in +config, and that solved the issue.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@brillout
Comment options

@enri90
Comment options

Answer selected by brillout
@brillout
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2596 on August 03, 2025 21:29.