Hi !
I just cant figure out whats the problem with the title being passed like this.
Also image isnt loading, but it loads perfectly fine in all twitter/linkedin card validators, debuggers etc.
Works fine on FB.
3 messages · Page 1 of 1 (latest)
Hi !
I just cant figure out whats the problem with the title being passed like this.
Also image isnt loading, but it loads perfectly fine in all twitter/linkedin card validators, debuggers etc.
Works fine on FB.
Hey! Do you have {news?.title} in your code anywhere? I don't see it in your snippets anywhere.
I guess just as a sanity check, double check your encodedUrl and encodedTitle are correct.
Other than that maybe try adding it to a tweet again, see if it's a twitter caching issue?
What is it rendering in the html (in Dev Tools)?
Your Props aren't typed, so it's difficult to say, but what is image?
If it's a relative url, then consider doing something like:
new URL(image, Astro.url.origin)
If it's an image object (i.e. ImageMetadata), then:
new URL(image.src, Astro.url.origin)