Twitter Card Validator - Invalid url for image path


#1

Hi

We are having an issue getting the image specified to appear in our twitter card.

The validator says
twitter:image
http://secure.investni.com/static/library/invest-ni/images/news/News 2014/ey-announcement-jpeg-2.jpg
Invalid URL

Here is a sample page: http://www.investni.com/news/ey-announces-486-jobs-in-belfast.html

The meta data on that page is:

<meta name='twitter:card' content='summary' />
<meta name='twitter:creator' content='@InvestNINews' />
<meta name="twitter:description" content="First Minister Rt. Hon. Peter D Robinson MLA, Department of Enterprise, Trade and Investment Minister Arlene Foster and Department of Employment and Learning Minister Dr Stephen Farry, today announced the creation of 486 jobs in a major development of EY’s UKI operations in Belfast. ">
<meta name="twitter:image" content="http://secure.investni.com/static/library/invest-ni/images/news/News 2014/ey-announcement-jpeg-2.jpg">
<meta name='twitter:site ' content='@InvestNINews' />
<meta name="twitter:title" content="EY Announces 486 jobs in Belfast">

The robots.txt on the domain where the images are found is:
User-agent: Twitterbot
Disallow: *
Allow: /static

I have searched the web but cannot see a solution, please advise.


#2

Hello Invest NI,

Could you please try re-submitting to the validator after removing the space character in the image URL? You can also encode it using “%20”: http://secure.investni.com/static/library/invest-ni/images/news/News%202014/ey-announcement-jpeg-2.jpg.

Please let us know if that fixes your issue.


Twitter Cards not working - "details" link missing
#3

Did the encoding fixed the problem @investNI?


#4

Additionally, I’m getting a 302 when CURL’ing the URL:

[tw-mba-rchoi sample-django-app (master)]$ curl -A “Twitterbot/1.0” http://secure.investni.com/static/library/invest-ni/images/news/News 2014/ey-announcement-jpeg-2.jpg

302 Found

302 Found


nginx