Twitter card images using encoded URIs


#1

When using the twitter card validator for ‘Summary Large Image’ with the URL http://dummyimage.com/600x400%2F000%2Ffff.gif%26text%3DHello as the for the twitter:image:src a preview is successfully generated and I can view the desired image.

However when I try to validate a page including a URL in the same format I am told that there is an ‘invalid URL’ provided.

Any ideas why this is happening?

Thanks!


#2

I managed to solve the issue.

Originally I was setting the meta tag using client side javascript which I later read does not work. I have now changed this to a server side generated meta tag and everything seems to be working as intended.