Missing something with page.media.images|first.url returning the second image?

Hi all!

I was using the following code to automatically generate opengraph tag information for my header images:

<meta name="og:image" property="og:image" content="http://www.gameprose.com{{ page.media.images|first.url }}" />

but I noticed that this actually ends up returning the second image uploaded to each page, consistently, rather than the first image. The weird thing about it is that I’m using the same type of code to pull in the first image as the header within the blog items themselves. Am I missing something with this?

Thanks for your time.

BUMP!

I think I remember a bug if I didn’t add true parameter for url.
What does this output:

{{ base_url_absolute }},{{ page.media.images|first.html.url(true) }}

Hey Paul thanks for the response. I’ll give that a try this evening and get back to you :grin:

Hey I just wanted to follow up and let you know that appears to have fixed the issue. Thanks again Paul!