Does Twitterbot follow url redirects for Twitter Cards?

1.7k views Asked by At

I'm setting up Twitter Cards for my website. https://dev.twitter.com/docs/cards

We have a custom short url that our tweet buttons post which redirects to a SEO friendly url.

My question is, do I need to add the metadata markup on both the redirect page and the final page?

I am using PHP's header:location(); to redirect to the SEO friendly page.

Thanks for any input!

2

There are 2 answers

0
Dan Leveille On BEST ANSWER

No, redirected URLs are followed automatically by Twitter, so you only need to integrate Twitter Cards on the permalink:

See here (using a bit.ly URL to a 500px page with Twitter Cards integrated):

Twitter Cards with redirecting URL

0
socca1157 On

@Dan Leveille was correct,

However In late 2013 around the time Twitter added "summary-large" cards, I believe this changed. I ended up having to add the meta tags to both the short URL pages and the actual pages.

FYI, for anyone else in the future.